Fortunately it's gone in Python 3:
>>> True = False
File "<stdin>", line 1
SyntaxError: can't assign to keyword
It's no longer an integer :)
It still is. bool is a subclass of int:
Python 3.6.5 (default, Mar 30 2018, 06:42:10)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> isinstance(True, int)
>>> isinstance(False, int)
Shameful mistake, thanks for clarifying ! I meant that they had their own type now, indeed from integer.
Initially, Python used to have no bool type
(people used 0 for false and non-zero value like 1 for true).
Then they added True, False, and a bool type, but, for backward
compatibility, they couldn't make True and False constants- they
just were built-in variables.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.