How to mess with Python’s mind
>>> x = True >>> True = False >>> False = x >>> True False >>> False True
This is legal code in Python 2.4.
Apparently, assignment to None was explicitly disallowed some versions back. Not so for True and False.
Comments Off