mirror of https://github.com/python/cpython
Issue13820 as and with really became keywords in 2.6.
Original rewording by Jim Jewett
This commit is contained in:
parent
b05f91d155
commit
96a0a46353
|
@ -357,12 +357,11 @@ exactly as written here:
|
||||||
assign a different object to it.
|
assign a different object to it.
|
||||||
|
|
||||||
.. versionchanged:: 2.5
|
.. versionchanged:: 2.5
|
||||||
Both :keyword:`as` and :keyword:`with` are only recognized when the
|
Using :keyword:`as` and :keyword:`with` as identifiers triggers a warning. To
|
||||||
``with_statement`` future feature has been enabled. It will always be enabled in
|
use them as keywords, enable the ``with_statement`` future feature .
|
||||||
Python 2.6. See section :ref:`with` for details. Note that using :keyword:`as`
|
|
||||||
and :keyword:`with` as identifiers will always issue a warning, even when the
|
.. versionchanged:: 2.6
|
||||||
``with_statement`` future directive is not in effect.
|
:keyword:`as` and :keyword:`with` are full keywords.
|
||||||
|
|
||||||
|
|
||||||
.. _id-classes:
|
.. _id-classes:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue