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
No comments yet.
RSS feed for comments on this post.
Leave a comment
Sorry, the comment form is closed at this time.