From 23e1d5b7658728014093ea5d02e76410d417e43d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Nov 2014 15:43:56 -0800 Subject: [PATCH] PEP 479: switch to "from __future__ import generator_stop". --- pep-0479.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0479.txt b/pep-0479.txt index 47889fc96..b85502131 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 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