Re: [Python-Dev] Generator methods - "what's next" ?

2009-04-07 Thread Firephoenix
Greg Ewing a écrit : Firephoenix wrote: I basically agreed with renaming the next() method to __next__(), so as to follow the naming of other similar methods (__iter__() etc.). But I noticed then that all the other methods of the generator had stayed the same (send, throw, close...) Keep

Re: [Python-Dev] Generator methods - "what's next" ?

2009-04-05 Thread Firephoenix
Stephen J. Turnbull a écrit : Firephoenix writes: > I'm a little confused by the recent changes to the generator system... Welcome to the club. It's not easy even for the gurus. See the PEP 380 ("yield from") discussions (mostly on Python-Ideas). > But I notic

Re: [Python-Dev] Generator methods - "what's next" ?

2009-04-05 Thread Firephoenix
Georg Brandl a écrit : Firephoenix schrieb: Hello everyone I'm a little confused by the recent changes to the generator system... I basically agreed with renaming the next() method to __next__(), so as to follow the naming of other similar methods (__iter__() etc.). But I noticed

[Python-Dev] Generator methods - "what's next" ?

2009-04-05 Thread Firephoenix
Hello everyone I'm a little confused by the recent changes to the generator system... I basically agreed with renaming the next() method to __next__(), so as to follow the naming of other similar methods (__iter__() etc.). But I noticed then that all the other methods of the generator had stay