Re: exit status
David Goodger <[email protected]> Sat, 14 Jun 2003 09:02:23 -0400
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Greg Ward wrote: > Good point. The ability to catch SystemExit is a feature, and error > messages appearing on stderr in such a case would be bad. The reason I said "not significant" was that the "error" method already prints usage info (to sys.stdout), whether or not the SystemExit is caught. A line more isn't significant. If my app wanted to catch SystemExit without output, I'd have to redirect sys.stdout in order to block the usage info as well; very kludgey. I think that it's not the intention of the code enable an app to block SystemExit without output. If it were, it would take some more effort to achieve it. At least, put the usage message into the sys.exit() argument. -- David Goodger ------------------------------------------------------- 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