Skip to content

Commit ef68b89

Browse files
committed
allowing iterables as input
1 parent c000c95 commit ef68b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/colored_permutations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def _element_constructor_(self, x):
13611361
True
13621362
13631363
"""
1364-
if isinstance(x, list):
1364+
if isinstance(x, list) or isinstance(x, range):
13651365
if x and isinstance(x[0], tuple):
13661366
c = []
13671367
p = []

0 commit comments

Comments
 (0)