How do I undo True = False in python interactive mode?
So I tried the "evil" thing Ned Deily mentioned in his answer here. Now I have that the type True is now always False. How would I reverse this within the interactive window?
Thing to not do:
True = False
Since True has now been completely overridden with False, there doesn't seem to be an obvious way to back-track. Is there a module that True comes from that I can do something like:
True = <'module'>.True
You can simply
del your custom name to set it back to the default:
>>> True = False >>> True False >>> del True >>> True True >>>
★ Back to homepage or read more recommendations: