[Python-checkins] peps: PEP 479: switch to "from __future__ import generator_stop".
guido.van.rossum
python-checkins at python.org
Fri Nov 21 00:44:10 CET 2014
https://hg.python.org/peps/rev/5eb88d52c5a3
changeset: 5607:5eb88d52c5a3
user: Guido van Rossum <guido at python.org>
date: Thu Nov 20 15:43:56 2014 -0800
summary:
PEP 479: switch to "from __future__ import generator_stop".
files:
pep-0479.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pep-0479.txt b/pep-0479.txt
--- a/pep-0479.txt
+++ b/pep-0479.txt
@@ -90,7 +90,7 @@
mechanism to introduce this in Python 3.5, finally making it standard
in Python 3.6 or 3.7. The proposed syntax is::
- from __future__ import generator_return
+ from __future__ import generator_stop
Any generator function constructed under the influence of this
directive will have the REPLACE_STOPITERATION flag set on its code
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list