[Python-Dev] PEP 479: Change StopIteration handling inside generators
Guido van Rossum
guido at python.org
Sun Nov 23 05:53:01 CET 2014
In order to save everyone's breath, I am *accepting* the proposal of PEP
479. The transition plan is:
- "from __future__ import generator_stop" in 3.5, and a silent deprecation
if StopIteration is allowed to bubble out of a generator (i.e. no warning
is printed unless you explicitly turn it on)
- non-silent deprecation in 3.6
- feature enabled by default in 3.7
The PEP hasn't been updated to include this and it also could use some more
editing -- I'll try to get to that Monday. But the specification of the
proposal is crystal-clear and I have no doubt that this is the right thing
going forward.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20141122/8e4eb11d/attachment.html>
More information about the Python-Dev
mailing list