Re: exit status
Greg Ward <[email protected]> Fri, 13 Jun 2003 20:29:36 -0400
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
On 13 June 2003, David Goodger said:
> There's a slight difference in semantics with the change. If the
> SystemExit exception is caught, no error message would be written wit
> the original code:
>
> sys.exit("%s: error: %s" % (get_prog_name(), msg))
>
> But the error message would be written with the new code:
>
> sys.stderr.write("%s: error: %s\n" % (get_prog_name(), msg))
> sys.exit(2)
>
> Very minor difference, and probably not significant.
Good point. The ability to catch SystemExit is a feature, and error
messages appearing on stderr in such a case would be bad. So, on
reflection, please don't make this change.
Greg
--
Greg Ward <[email protected]> http://www.gerg.ca/
Predestination was doomed from the start.
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5