[Python-Dev] a quit that actually quits (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Tue Dec 27 14:57:29 CET 2005


Reinhold Birkenfeld wrote:

What is wrong with something like this:

>>> class Quitter: ... def repr(self): raise SystemExit ... >>> exit = quit = Quitter()

vars() # oops!



More information about the Python-Dev mailing list