Ticket #14138: trac_14138-doctests.patch

File trac_14138-doctests.patch, 1.5 KB (added by ncohen, 8 years ago)
  • sage/combinat/combinat.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1361373130 -3600
    # Node ID 687a7d0741d5dd99fa3addcfd8b4d683d21eb2a6
    # Parent  ec73e10e904c942c9231520a23445cf9dc3b4f33
    some cleanup in sage.combinat.combinat -- two doctests and a comma
    
    diff --git a/sage/combinat/combinat.py b/sage/combinat/combinat.py
    a b  
    24012401        ...       print cycle
    24022402        ['a', 'b', 'c']
    24032403        ['a', 'c', 'b']
     2404
     2405    Since :trac:`14138` some repetitions are handled as expected::
     2406
     2407        sage: cyclic_permutations([1,1,1])
     2408        [[1, 1, 1]]
    24042409    """
    24052410    return list(cyclic_permutations_iterator(mset))
    24062411
     
    24232428        ...       print cycle
    24242429        ['a', 'b', 'c']
    24252430        ['a', 'c', 'b']
     2431
     2432    Since :trac:`14138` some repetitions are handled as expected::
     2433
     2434        sage: cyclic_permutations([1,1,1])
     2435        [[1, 1, 1]]
    24262436    """
    24272437    if len(mset) > 2:
    24282438        from sage.combinat.permutation import Permutations
  • sage/combinat/multichoose_nk.py

    diff --git a/sage/combinat/multichoose_nk.py b/sage/combinat/multichoose_nk.py
    a b  
    22Low-level multichoose
    33"""
    44#*****************************************************************************
    5 #       Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>,
     5#       Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>
    66#
    77#  Distributed under the terms of the GNU General Public License (GPL)
    88#