Numbers and truth values
Mel Wilson
mwilson at the-wire.com
Sat Apr 28 19:01:19 EDT 2007
John Nagle wrote:
> "True", "False", and "None" should be reserved words in Python.
> "None" already is.
The permissiveness makes it less painful to upgrade to new versions of
Python. True and False only recently got assigned conventional
values, but you can still import old modules without worrying whether
they might violate the new rule; if True and False once meant
something special to them, it will still mean the same thing.
Meanwhile new code can follow the new conventions.
Mel.
More information about the Python-list
mailing list