sys.exit()

Ivan Voras ivoras at fer.hr
Thu Oct 9 12:35:40 EDT 2003


Gerrit Holl wrote:

> An alternative that I often choose is:
>
> raise SystemExit("I need arguments!")
>
> This is the same in one line, and I think it is more elegant, because
> it
> is higher-level: you are not using the low-level interface of error

Yes, I agree. This is what I was looking for (as always, it was obvious
:) ), thanks. Only, what error code is returned for this termination method?

-- 
-- 
Every sufficiently advanced magic is indistinguishable from technology
   - Arthur C Anticlarke






More information about the Python-list mailing list