[Python-Dev] a quit that actually quits

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!

</F> 


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /