Skip to content

Commit 9ced783

Browse files
Use _from_permutation_group_element function instead of updating x
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
1 parent f444d32 commit 9ced783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/permutation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7102,7 +7102,7 @@ def _element_constructor_(self, x, check=True):
71027102
[4, 5, 1, 2, 3]
71037103
"""
71047104
if isinstance(x, PermutationGroupElement):
7105-
x = x.domain()
7105+
return self. _from_permutation_group_element(x)
71067106
if len(x) < self.n:
71077107
x = list(x) + list(range(len(x) + 1, self.n + 1))
71087108
return self.element_class(self, x, check=check)

0 commit comments

Comments
 (0)