#10927: [needs review] An object's element list should be immutable
---------------------------------+-----------------------
Reporter: justin | Owner: nthiery
Type: defect | Status: new
Priority: major | Milestone:
Component: categories | Resolution:
Keywords: | Merged in:
Authors: Justin Walker | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+-----------------------
Comment (by mmezzarobba):
Replying to [comment:1 justin]:
> Instead of creating and saving the element list as a list, do so as a
tuple, and return
> as a list when requested.
I doubt people would be happy with the performance implications. IMO the
proper fix would be to either return an immutable data structure despite
the method's name, or better, to implement copy-on-write mutable lists.
--
Ticket URL: <http://trac.sagemath.org/ticket/10927#comment:2>
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.