[issue36691] SystemExit & sys.exit : Allow both exit status and message
Eric V. Smith
report at bugs.python.org
Sat May 18 19:50:07 EDT 2019
Eric V. Smith <eric at trueblade.com> added the comment:
You could add a flag in the exception to tell the default handler where to write the message. It would default to stderr.
This would make it possible to catch the exception before it was written out, and customize the behavior.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36691>
_______________________________________
More information about the Python-bugs-list
mailing list