mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Remove forward-looking statement
This commit is contained in:
parent
2ea2968064
commit
3351e4142c
1 changed files with 3 additions and 3 deletions
|
|
@ -501,9 +501,9 @@ clauses to execute.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
In Python 2.2, the :keyword:`yield` statement is only allowed when the
|
In Python 2.2, the :keyword:`yield` statement was only allowed when the
|
||||||
``generators`` feature has been enabled. It will always be enabled in Python
|
``generators`` feature has been enabled. This ``__future__``
|
||||||
2.3. This ``__future__`` import statement can be used to enable the feature::
|
import statement was used to enable the feature::
|
||||||
|
|
||||||
from __future__ import generators
|
from __future__ import generators
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue