[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
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.
More information about the Python-ideas
mailing list