A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-November/137066.html below:

Change StopIteration handling inside generators

[Python-Dev] PEP 479: Change StopIteration handling inside generators [Python-Dev] PEP 479: Change StopIteration handling inside generatorsGuido 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4