Setting the value of True

jeangawron at gmail.com jeangawron at gmail.com
Fri Aug 23 19:38:43 EDT 2013


Python allows you set the value of True

>>> True = 1.3

Now this is consistent with the decision to let you set the
value of various builtin names.  But why is this case different:

>>> None = 1.3
  File "<stdin>", line 1
SyntaxError: cannot assign to None

Mark Gawron



More information about the Python-list mailing list