Thomas Lee wrote:
Martin v. Löwis wrote:
In Python 3, None, True, and False are keywords, so clearly, the
intended semantics is also the implemented one (and the language
description for 2.x needs to be updated/clarified).

Interestingly enough, the semantics of True, False and None are different from one another in 2.6:

True = "blah" and False = 6 are perfectly legal in Python <=2.6.

True and False didn't get the same treatment as None because we didn't want to break the follow compatibility workaround for Python version prior to 2.2.2:

try:
  True
except NameError:
  True, False = 1, 0

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to