how do I exit gracefully?
Thomas Wouters
thomas at xs4all.net
Sun Oct 29 11:36:32 EST 2000
On Sat, Oct 28, 2000 at 08:22:25PM -0400, Thomas A. Bryan wrote:
> > execute? I dug around the FAQ and DejaNews and found sys.exit() and
> > os._exit() but both of these methods raise exceptions.
> sys.exit() should exit the program, not raise an exception.
Actually, sys.exit() does raise an exception, but that's besides the point
;) My bet is the exception the original guy was talking about was
'NameError'. He probably forgot to import sys and/or os before using them.
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list