# 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
|
|
2401 | 2401 | ... print cycle |
2402 | 2402 | ['a', 'b', 'c'] |
2403 | 2403 | ['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]] |
2404 | 2409 | """ |
2405 | 2410 | return list(cyclic_permutations_iterator(mset)) |
2406 | 2411 | |
… |
… |
|
2423 | 2428 | ... print cycle |
2424 | 2429 | ['a', 'b', 'c'] |
2425 | 2430 | ['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]] |
2426 | 2436 | """ |
2427 | 2437 | if len(mset) > 2: |
2428 | 2438 | from sage.combinat.permutation import Permutations |
diff --git a/sage/combinat/multichoose_nk.py b/sage/combinat/multichoose_nk.py
a
|
b
|
|
2 | 2 | Low-level multichoose |
3 | 3 | """ |
4 | 4 | #***************************************************************************** |
5 | | # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, |
| 5 | # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com> |
6 | 6 | # |
7 | 7 | # Distributed under the terms of the GNU General Public License (GPL) |
8 | 8 | # |