summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-06-18 19:18:21 +0000
committerFred Drake <fdrake@acm.org>2002-06-18 19:18:21 +0000
commit8304f5431fc3b4810a5fa5e1e086684ac4ea7bc7 (patch)
treef4285bfda620f1da93dd15aa017fb5c09e138efa
parent8761da0d084a8b89ef8009251a05e39ec8ded49a (diff)
downloadcpython-8304f5431fc3b4810a5fa5e1e086684ac4ea7bc7.tar.gz
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.
-rw-r--r--Doc/ref/ref2.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index 3a8bba2de5..6c38ba710a 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -280,6 +280,13 @@ in the \module{__builtin__} module. When not in interactive mode,
\samp{_} has no special meaning and is not defined.
\end{description}
+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.
+
\section{Literals\label{literals}}