#18184: CombinatorialObject constructor should copy input
-----------------------------+----------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: combinatorics | Keywords:
Merged in: | Authors: Jeroen Demeyer
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------------
Constructing a `Partition` (or more generally, a `CombinatorialObject`)
from a list does not copy this list, leading to:
{{{
sage: L = IntegerListsLex(max_slope=-1, element_class=Partition)
sage: x = [3,2,1]
sage: P = L(x)
sage: x[0] = 5
sage: list(P)
[5, 2, 1]
}}}
In the `IntegerListsLex` implementation in #17979, a work-around was added
for this. Instead, fix this by copying the input.
--
Ticket URL: <http://trac.sagemath.org/ticket/18184>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.