]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1492218: document None being a constant.
authorGeorg Brandl <georg@python.org>
Fri, 26 May 2006 20:16:26 +0000 (20:16 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 26 May 2006 20:16:26 +0000 (20:16 +0000)
Doc/ref/ref2.tex

index 5971dab4bcdac04efb61f9a020e293b5fafe549a..5d5aabd8a7f4bd50da2aed8cf6b6c27f5c61a061 100644 (file)
@@ -322,8 +322,12 @@ 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.
+In Python 2.6, the identifier \code{as} will become a keyword.
+
+\versionchanged[\constant{None} became a constant and is now
+recognized by the compiler as a name for the builtin object
+\constant{None}.  Although it is not a keyword, you cannot assign
+a different object to it]{2.4}
 
 
 \subsection{Reserved classes of identifiers\label{id-classes}}