post
The builtin names are True and False and they became keywords a while back. true and false are just ordinary variables that you can set to whatever you want.
Meanwhile, in Forth:
: 2 3 ; \ define 2 as 3
2 2 + . 6 ok \ shows that 2+2 is now 6
God I hated that about Python. Why tf we capitalizing True and False?
all builtin constants are capitalised.
All… five of them!
The other 7 are all lowercase. (One of you ignore site)
And they also don't follow the conventions for constants otherwise, which are all caps.
Maybe they did "False is True" because they're both the same Python object?
I just checked and they aren't.
Maybe they defined them as variable names instead?
Or they could have just changed the language. Do you remember them compiling or editing C? (Python is usually run on cpython)
True is False gives false in Python 2.7.18 as well as 3.x. But, in 2.x, they aren't keywords, so you can say True=False=5 and then they are both the same object.
all 16 comments