[sage-support] How to reinitialize a generator.

2011-01-09 Thread Trollkemada
Hi, I would like to know how to reinitialize/reset a generator. I mean, if I for example have: sage: generator = (n for n in range(1,1) if (is_prime(n) & is_prime(n+2))) And then i run generator.next() for example twice. How can i reinitialize/rest this generator so that when i run generator

[sage-support] Re: Making the an inmutable sequence mutable.

2011-01-08 Thread Trollkemada
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 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 with "under

[sage-support] Making the an inmutable sequence mutable.

2011-01-08 Thread Trollkemada
Hi all, I would like to know how to make mutable an inmutable sequence. I have been told there are two ways to do that: The first way is using the flag v._is_immutable=False. Anyone can give me a link to the SAGE documentation about this "_is_immutable" thing? I really need something -a documenta