Does anyone remember an old blog post where someone used various Python language hacks to override boolean primitives, such that the statement false == true
evaluated as true
? I’m 90% sure it was python, but maybe it was some other language.
I’ve been looking for that post recently, but haven’t had any luck.
Thanks to antagonistic for finding it! I guess it was less of an “exploit”, and more of a “please don’t touch the loaded foot-gun”
God I hated that about Python. Why tf we capitalizing
True
andFalse
?They are constants, like None, which has always been around.
all builtin constants are capitalised.
All… five of them!
The other 7 are all lowercase. (One of you ignore site)
yeah but dunders usually aren’t included in counts