PEP 479: Use a shorter __future__ name (generator_return).

This commit is contained in:
Guido van Rossum 2014-11-20 11:01:20 -08:00
parent e9a519ab78
commit e30dcf99fe
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
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