Martin Panter added the comment:

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.

----------
nosy: +vadmium

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24261>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to