summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-26 20:14:47 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-26 20:14:47 (GMT)
commita89dbec2576903ab1e95a365df1fccba38c8cb52 (patch)
tree564b8cdc6c4b31d51e726a89827d4f5de983d2cc /Doc
parent7784f12d745e5f0d2e4c9e98c792f026897325ea (diff)
downloadcpython-a89dbec2576903ab1e95a365df1fccba38c8cb52.zip
cpython-a89dbec2576903ab1e95a365df1fccba38c8cb52.tar.gz
cpython-a89dbec2576903ab1e95a365df1fccba38c8cb52.tar.bz2
Patch #1492218: document None being a constant.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref2.tex16
1 files changed, 9 insertions, 7 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index acce768..2ed8a5d 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -319,16 +319,18 @@ def for lambda try
% 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 by default.)
+\versionchanged[\constant{None} became a constant and is now
+recognized by the compiler as a name for the built-in object
+\constant{None}. Although it is not a keyword, you cannot assign
+a different object to it]{2.4}
\versionchanged[Both \keyword{as} and \keyword{with} are only recognized
-when the \code{with_statement} feature has been enabled. It will always
-be enabled in Python 2.6. See section~\ref{with} for details]{2.5}
+when the \code{with_statement} future feature has been enabled.
+It will always be enabled in 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 \code{with_statement} future
+directive is not in effect]{2.5}
-In some future version of Python, the identifier \code{None} will
-become a keyword.
\subsection{Reserved classes of identifiers\label{id-classes}}