PEP 479: switch to "from __future__ import generator_stop".

This commit is contained in:
Guido van Rossum 2014-11-20 15:43:56 -08:00
parent c5ca1d2cf7
commit 23e1d5b765
1 changed files with 1 additions and 1 deletions

View File

@ -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 mechanism to introduce this in Python 3.5, finally making it standard
in Python 3.6 or 3.7. The proposed syntax is:: 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 Any generator function constructed under the influence of this
directive will have the REPLACE_STOPITERATION flag set on its code directive will have the REPLACE_STOPITERATION flag set on its code