mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
Add a note about "as" not being a keyword, though it has special meaning
when used as part of the import statement. Note that both "as" and "None" becoming keywords in the future. Closes SF bug #553262.
This commit is contained in:
parent
2683ac755d
commit
a23b5739bb
@ -272,6 +272,13 @@ def finally in print
|
||||
|
||||
% When adding keywords, use reswords.py for reformatting
|
||||
|
||||
Note that although the identifier \code{as} can be used as part of the
|
||||
syntax of \keyword{import} statements, it is not currently a reserved
|
||||
word.
|
||||
|
||||
In some future version of Python, the identifiers \code{as} and
|
||||
\code{None} will both become keywords.
|
||||
|
||||
|
||||
\subsection{Reserved classes of identifiers\label{id-classes}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user