Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fyi1183
· 8y ago · 0 comments
That's a nice story, but True and False are keywords in python. Such assignment attempts are a syntax error.
Comments
[–]
haldean
8y ago
This was not true in Python 2, and redefining True to False used to be a jokey way to break the interpreter in a bunch of fun ways.
[–]
jwilk
8y ago
In fact, there's still lots of code in the wild that assigns to True/False, presumably for compatibility with
very
old Python versions:
https://codesearch.debian.net/search?q=%28%3Fm%29%5E%5Cs%2AT...