To see that this is not about precedence, evaluate the following:
>>> True == False is False
False
>>> False == True is False
False >>> True == False is False
False
>>> False == True is False
FalseOr read the very first part of the linked page that shows:
>>> (True == False) is False
True
>>> True == (False is False)
TrueYou'd be correct to use 'is' to mean 'is', and '==' to mean '==', following their definitions.
Other than that, just don't use `is`.