For completeness: Kevin mentions that you could also fetch the real True
from __builtins__
:
>>> True = False
>>> True
False
>>> True = __builtins__.True
>>> True
True
But that True
can also be overriden:
>>> __builtins__.True = False
>>> __builtins__.True
False
So better to go with one of the other options.