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
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
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
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