Logical paradox in python?

Viewed 701

I came over this, where "not None" equals both True and False simultaneously.

>>> not None
True

>>> not None == True
True

>>> not None == False
True

At first I expected that this would be because of the order of operators, but however when testing a similar expression:

>>> not False
True

>>> not False == False
False

>>> not False == True
True

Can anyone explain why this is happening?

4 Answers
Related