Why is 'None' not assignable but 'True'/'False' are?

Rodney Maxwell rodney.maxwell at gmail.com
Mon Jan 2 14:11:46 EST 2006


In Python 2.4.1:

>>> None = 99
SyntaxError: assignment to None
>>> True = 99
>>> False = 99
>>> True == False
True
-----------------------
So why is 'None' special?




More information about the Python-list mailing list