[Python-checkins] peps: PEP 479: Use a shorter __future__ name (generator_return).

guido.van.rossum python-checkins at python.org
Thu Nov 20 20:08:22 CET 2014


https://hg.python.org/peps/rev/944968d549a8
changeset:   5604:944968d549a8
user:        Guido van Rossum <guido at python.org>
date:        Thu Nov 20 11:01:20 2014 -0800
summary:
  PEP 479: Use a shorter __future__ name (generator_return).

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 replace_stopiteration_in_generators
+    from __future__ import generator_return
 
 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