How to terminate a main script?

Helmut Jarausch jarausch at igpm.rwth-aachen.de
Tue Jul 11 06:33:30 EDT 2006


Fredrik Lundh wrote:
> Helmut Jarausch wrote:
> 
>> Using sys.exit(0) produces an error
>> message which looks dangerous to an
>> uninitiated user.
> 
> sys.exit(0) doesn't print anything at all.

Yes, sorry, I was trying in in 'idle'
There you get
Traceback (most recent call last):
   File "<pyshell#1>", line 1, in -toplevel-
     sys.exit(0)
SystemExit: 0


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list