I was recently reading some code online, and saw this block:
if 'True' not in globals():
globals()['True'] = not None
globals()['False'] = not True
What is happening here? Why would True ever not be in globals? I've never come across anything like this during my ~10 years as a professional python programmer!