| Python Language Reference Manual by Guido van Rossum and Fred L. Drake, Jr. Paperback (6"x9"), 120 pages ISBN 0954161785 RRP £12.95 ($19.95) Sales of this book support the Python Software Foundation! Get a printed copy>>> |
2.3.1 Keywords
The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:
and del from not while
as elif global or with
assert else if pass yield
break except import print
class exec in raise
continue finally is return
def for lambda try
In version 2.4, None became a constant and is now
recognized by the compiler as a name for the built-in object
None. Although it is not a keyword, you cannot assign
a different object to it.
In version 2.5, both as and with are only recognized
when the with_statement future feature has been enabled.
It will always be enabled in Python 2.6. See section 7.5 for
details. Note that using as and with as identifiers
will always issue a warning, even when the with_statement future
directive is not in effect.
| ISBN 0954161785 | Python Language Reference Manual | See the print edition |