We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See this sage-devel thread for several nasty things that happen because combinat methods mess with the lists involved.
sage: from sage.combinat.permutation import to_standard as pts sage: a = [1,2,4] sage: pts(a) [1, 2, 3] sage: a [5, 5, 5] sage: pts([1,1,3]) [1, 2, 3]
Volker Braun also points out
sage: Permutation([3,2]) # invalid one-line notation [3, 2] sage: _.cycle_string() <boom>
CC: @nthiery @hivert
Component: combinatorics
Author: Travis Scrimshaw
Reviewer: Mike Hansen
Merged: sage-5.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/11425
The text was updated successfully, but these errors were encountered:
Attachment: trac_11425-perm_to_standard_fix-ts.patch.gz
Sorry, something went wrong.
Now it makes a copy of the list and modifies that copy.
The second issue should be handled by #8392 since an invalid permutation is passed in.
Looks good to me.
sagetrac-sage-combinat
No branches or pull requests
See this sage-devel thread for several nasty things that happen because combinat methods mess with the lists involved.
Volker Braun also points out
CC: @nthiery @hivert
Component: combinatorics
Author: Travis Scrimshaw
Reviewer: Mike Hansen
Merged: sage-5.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/11425
The text was updated successfully, but these errors were encountered: