PEP 479: switch to "from __future__ import generator_stop".
This commit is contained in:
parent
c5ca1d2cf7
commit
23e1d5b765
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue