[Python-ideas] generator vs iterator etc. (was: How assignment should work with generators?)
Stephen J. Turnbull
turnbull.stephen.fw at u.tsukuba.ac.jp
Wed Nov 29 13:24:28 EST 2017
More information about the Python-ideas mailing list
Wed Nov 29 13:24:28 EST 2017
- Previous message (by thread): [Python-ideas] generator vs iterator etc. (was: How assignment should work with generators?)
- Next message (by thread): [Python-ideas] generator vs iterator etc. (was: How assignment should work with generators?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano writes: > > The two iterators have the same duck-type, the generator is different. > > How is the generator different? My bad, I got the comparison backward. The generator *is* different, but it's because the generator has *extra* public methods, not fewer. Sorry for the noise.
- Previous message (by thread): [Python-ideas] generator vs iterator etc. (was: How assignment should work with generators?)
- Next message (by thread): [Python-ideas] generator vs iterator etc. (was: How assignment should work with generators?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list