5 ms·
That's a nice story, but True and False are keywords in python. Such assignment attempts are a syntax error.
by fyi1183 8y ago
That's a nice story, but True and False are keywords in python. Such assignment attempts are a syntax error.
- haldean 8y agoThis 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 agoIn 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%2ATrue%5Cs%2A%3D+filetype%3Apython https://codesearch.debian.net/search?q=%28%3Fm%29%5E%5Cs%2AT...