Skip to content

Commit 2a57f75

Browse files
Set added to help in removing duplicates. Change suggested by tscrim.
Co-authored-by: Travis Scrimshaw <[email protected]>
1 parent 47cb1e1 commit 2a57f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7608,7 +7608,7 @@ def __classcall_private__(cls, n, parts):
76087608
sage: list(Partitions(4,parts_in=vector(ZZ,[2,4])))
76097609
[[4], [2, 2]]
76107610
"""
7611-
parts = tuple(sorted(map(ZZ,parts)))
7611+
parts = tuple(sorted(set(map(ZZ,parts))))
76127612
return super().__classcall__(cls, Integer(n), parts)
76137613

76147614
def __init__(self, n, parts):

0 commit comments

Comments
 (0)