As Guido states in the story None
, True
andFalse
, the context matters if not accepted True
and the False
keywords. When bool was introduced (with PEP 285 in Python 2.3), it could not be made a keyword, because a lot of existing code already defined it anyway:
True
/False
. , . true false, True False, TRUE FALSE, . , , True False , , True
False
.
:
, , , True
False
, . , True
False
( ), , Python 3, , True
False
None
.
, :
, , - .
, . Python 2 , True
False
.
Python 3 , , , , True
False
.