[Python-Dev] a quit that actually quits
Gareth McCaughan
gmccaughan at synaptics-uk.com
Tue Jan 3 19:43:10 CET 2006
> class _Quitter(str):
> def __call__(self): raise SystemExit
> quit = _Quitter('The quit command. Type "quit()" to exit')
> exit = _Quitter('The exit command. Type "exit()" to exit')
I think you meant
class _Quitter(str):
def __call__(self): raise SystemExit
quit = _Quitter('The quit command. Type "quit()" to quit')
exit = _Quitter('The exit command. Type "exit()" to exit')
:-)
--
g
More information about the Python-Dev
mailing list