From e30dcf99fe56872e610e7cb79994afb052d40044 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Nov 2014 11:01:20 -0800 Subject: [PATCH] PEP 479: Use a shorter __future__ name (generator_return). --- pep-0479.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0479.txt b/pep-0479.txt index d4852bfc9..2ed8cf585 100644 --- a/pep-0479.txt +++ b/pep-0479.txt @@ -90,7 +90,7 @@ As this can break code, it is proposed to utilize the ``__future__`` 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