I've told you two ways to un-unmutate something.
I just need either the doc file when it is talked about _is_inmutable
thing or a doc when it is said that there is no way to make mutable an
inmutable sequence.
Thanks
2011/1/9 Volker Braun vbraun.n...@gmail.com
There is no official way to
The documentation of Sequence.set_immutable() is quite clear. Never means
that there is no way:
Definition: Sequence.set_immutable(self)
Docstring:
Make this object immutable, so it can never again be changed.
EXAMPLES:
sage: v = Sequence([1,2,3,4/5])
I'm not talking about the .set_inmutable() but about _is_inmutable.
Thanks for the answers
2011/1/9 Volker Braun vbraun.n...@gmail.com
The documentation of Sequence.set_immutable() is quite clear. Never means
that there is no way:
Definition: Sequence.set_immutable(self)
Docstring:
On Sun, Jan 9, 2011 at 8:09 AM, Volker Braun vbraun.n...@gmail.com wrote:
The documentation of Sequence.set_immutable() is quite clear. Never means
that there is no way:
Definition: Sequence.set_immutable(self)
Docstring:
Make this object immutable, so it can never again be changed.
Yes, it is just for my own work. William, do you know where, in the doc, can
i find ANYTHING about _is_inmutable flag?
2011/1/9 William Stein wst...@gmail.com
On Sun, Jan 9, 2011 at 8:09 AM, Volker Braun vbraun.n...@gmail.com
wrote:
The documentation of Sequence.set_immutable() is quite
On Jan 9, 2011, at 08:32 , José Díaz de Greñu y de Pedro wrote:
Yes, it is just for my own work. William, do you know where, in the doc, can
i find ANYTHING about _is_inmutable flag?
AFAIK, there is no documentation, per se, on this flag. Your best bet at this
point is to use, in sage, the
Okey, thank you and sorry about the text in spanish.
2011/1/9 Justin C. Walker jus...@mac.com
On Jan 9, 2011, at 08:32 , José Díaz de Greñu y de Pedro wrote:
Yes, it is just for my own work. William, do you know where, in the doc,
can
i find ANYTHING about _is_inmutable flag?
AFAIK,
The two possible ways are
v = Sequence([1,2,3],immutable=True)
or
v = Sequence([1,2,3])
v.set_immutable()
You should never mess with underscore attributes if you haven't actually
written the code as these implementation details can change without warning.
The documentation is displayed by
That's the opositte, i want, having a INMUTABLE sequence, make it
MUTABLE. Not the other way around.
On 8 ene, 22:56, Volker Braun vbraun.n...@gmail.com wrote:
The two possible ways are
v = Sequence([1,2,3],immutable=True)
or
v = Sequence([1,2,3])
v.set_immutable()
You should never mess
There is no official way to un-immutable something as it wouldn't be
immutable then. The only way is to make a new list/Sequence with a copy of
the elements. The new container is then mutable again, since it is only
copy:
v_copy = [ x for x in v_immutable ]
If you modify the copy, the
10 matches
Mail list logo