PEP 479: Use a shorter __future__ name (generator_return).
This commit is contained in:
parent
e9a519ab78
commit
e30dcf99fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue