Re: [sage-support] How to reinitialize a generator.

2011-01-09 Thread José Díaz de Greñu y de Pedro
Thanks Anything in the doc about that? 2011/1/9 Francois Maltey > thanks, > > I discover : > > sage: import itertools > sage: it = sxrange(10^7) > sage: (it1, it2) = itertools.tee (it) > sage: ... play with it1.next() and it2.next() > > ... > > F. > > > -- > To post to this group, send email to

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

2011-01-09 Thread José Díaz de Greñu y de Pedro
Okey, thank you and sorry about the text in spanish. 2011/1/9 Justin C. Walker > > 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_inmutabl

Re: [sage-support] How to reinitialize a generator.

2011-01-09 Thread José Díaz de Greñu y de Pedro
I don't think so.. :S Traceback (click to the left of this block for traceback) ... NameError: name 'tee' is not defined 2011/1/9 Mike Hansen > 2011/1/9 José Díaz de Greñu y de Pedro : > > But that's in Phyton is it exactly the same for SAGE? > > Yep!

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

2011-01-09 Thread José Díaz de Greñu y de Pedro
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 > On Sun, Jan 9, 2011 at 8:09 AM, Volker Braun > wrote: > > The documentation of Sequence.set_immutable() is quite clear. "Never" > means > > that there

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

2011-01-09 Thread José Díaz de Greñu y de Pedro
I'm not talking about the .set_inmutable() but about _is_inmutable. Thanks for the answers 2011/1/9 Volker Braun > The documentation of Sequence.set_immutable() is quite clear. "Never" means > that there is no way: > > > Definition: Sequence.set_immutable(self) > Docstring: >Make this o

Re: [sage-support] How to reinitialize a generator.

2011-01-09 Thread José Díaz de Greñu y de Pedro
But that's in Phyton is it exactly the same for SAGE? 2011/1/9 Iwao Kimura > Hi, Trollkemada, > > Here is the same question (and answers): > > http://stackoverflow.com/questions/1271320/reseting-generator-object-in-python > > Hope this helps. > > On Sun, Jan 9, 2011 at 10:55 PM, Trollkemada > w

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

2011-01-09 Thread José Díaz de Greñu y de Pedro
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 > There is no official way to un-immutable something