[Tutor] exit message
Jim Mooney
cybervigilante at gmail.com
Mon May 6 06:24:30 CEST 2013
I've noticed that if you exit() a program you always get a traceback message:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
exit('what now?')
File "C:\Python33\lib\site.py", line 380, in __call__
raise SystemExit(code)
What if you just want to exit for some normal reason and don't want
the message? Or is a program always supposed to end in some normal way
without an exit. Or is there a different, more graceful way to end a
program when you want?
--
Jim Mooney
“For anything that matters, the timing is never quite right, the resources
are always a little short, and the people who affect the outcome are always
ambivalent.”
More information about the Tutor
mailing list