This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients abacabadabacaba, martin.panter, r.david.murray
Date 2015-05-22.01:25:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432257915.94.0.696716264964.issue24261@psf.upfronthosting.co.za>
In-reply-to
Content
I have often wished for Python to have two modes:

1. Programming development mode: something like “python -b -Wdefault”, enabling warnings, printing full trackbacks for SIGINT and EPIPE errors, etc. Also possibly catching SystemExit() when raised inside the interactive interpreter.

2. End-user mode: hide deprecation warnings, no traceback for SIGINT and EPIPE errors (just set an exit status or maybe reraise using the default OS signal handler to set the right exit signal flag to the parent process).

Among other things, this would allow easily switching between reporting KeyboardInterrupt tracebacks (whether triggered at startup or by the main code), and hiding them.
History
Date User Action Args
2015-05-22 01:25:15martin.pantersetrecipients: + martin.panter, r.david.murray, abacabadabacaba
2015-05-22 01:25:15martin.pantersetmessageid: <1432257915.94.0.696716264964.issue24261@psf.upfronthosting.co.za>
2015-05-22 01:25:15martin.panterlinkissue24261 messages
2015-05-22 01:25:14martin.pantercreate