#11425: to_standard modifies the original permutation
-----------------------------+----------------------------------------------
Reporter: kcrisman | Owner: sage-combinat
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.1
Component: combinatorics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
See [http://groups.google.com/group/sage-
devel/browse_thread/thread/2949ab8832386bf8 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>
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11425>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.