File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
"""
9
9
import itertools
10
10
11
- from collections .abc import Iterable
12
11
from sage .structure .element import MultiplicativeGroupElement
13
12
from sage .structure .parent import Parent
14
13
from sage .structure .unique_representation import UniqueRepresentation
@@ -992,6 +991,18 @@ def __classcall_private__(cls, pi):
992
991
sage: SignedPermutation([2, 1, -3])
993
992
[2, 1, -3]
994
993
994
+ sage: SignedPermutation((2,1,-3))
995
+ [2, 1, -3]
996
+
997
+ sage: SignedPermutation(range(1,4))
998
+ [1, 2, 3]
999
+
1000
+ TESTS::
1001
+
1002
+ sage: T = SignedPermutation(range(1,4)); type(T)
1003
+ <class 'sage.combinat.colored_permutations.SignedPermutations_with_category.element_class'>
1004
+ sage: SignedPermutation(T)
1005
+ [1, 2, 3]
995
1006
"""
996
1007
return SignedPermutations (len (list (pi )))(pi )
997
1008
You can’t perform that action at this time.
0 commit comments