pep 336: Make None Callable

Benji York benji at benjiyork.com
Fri Nov 5 03:14:51 CET 2004


Chris Cioffi wrote:
> Even when we type it: None.  it's the only builtin that is
> capitalized.  

Hmm.

>>> print '\n'.join([name for name in dir(__builtins__) if name[0].isupper()])
ArithmeticError
AssertionError
AttributeError
DeprecationWarning
EOFError
Ellipsis
EnvironmentError
Exception
False
FloatingPointError
FutureWarning
IOError
ImportError
IndentationError
IndexError
KeyError
KeyboardInterrupt
LookupError
MemoryError
NameError
None
NotImplemented
NotImplementedError
OSError
OverflowError
OverflowWarning
PendingDeprecationWarning
ReferenceError
RuntimeError
RuntimeWarning
StandardError
StopIteration
SyntaxError
SyntaxWarning
SystemError
SystemExit
TabError
True
TypeError
UnboundLocalError
UnicodeDecodeError
UnicodeEncodeError
UnicodeError
UnicodeTranslateError
UserWarning
ValueError
Warning
WindowsError
ZeroDivisionError
-- 
Benji York
benji at benjiyork.com




More information about the Python-list mailing list