[Python-ideas] PEP 479: Change StopIteration handling inside generators
Ethan Furman
ethan at stoneleaf.us
Fri Nov 21 17:52:59 CET 2014
On 11/21/2014 08:30 AM, Steven D'Aprano wrote:
>
> But generators and iterators *are the same thing*. (Generator functions
> are not iterators, but generators themselves are.) Iterators don't have
> a specific type, but they obey the iterator protocol:
Um, no, they aren't. One cannot 'send()' into any ol' iterator.
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141121/d75aba43/attachment-0001.sig>
More information about the Python-ideas
mailing list