Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a23b573

Browse files
committed
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.
1 parent 2683ac7 commit a23b573

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/ref/ref2.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ \subsection{Keywords\label{keywords}}
272272

273273
% When adding keywords, use reswords.py for reformatting
274274

275+
Note that although the identifier \code{as} can be used as part of the
276+
syntax of \keyword{import} statements, it is not currently a reserved
277+
word.
278+
279+
In some future version of Python, the identifiers \code{as} and
280+
\code{None} will both become keywords.
281+
275282

276283
\subsection{Reserved classes of identifiers\label{id-classes}}
277284

0 commit comments

Comments
 (0)