[issue24261] Add a command line flag to suppress default signal handlers

2015-05-21 Thread Evgeny Kapun
New submission from Evgeny Kapun: Currently, Python always changes handling of certain signals on startup: SIGPIPE is ignored, and SIGINT is handled by a function that raises KeyboardInterrupt exception. As a result, if the user presses Ctrl-C, a backtrace is printed to stderr. Some program

[issue24261] Add a command line flag to suppress default signal handlers

2015-05-21 Thread R. David Murray
R. David Murray added the comment: See also issue 14228. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24261 ___ ___

[issue24261] Add a command line flag to suppress default signal handlers

2015-05-21 Thread Martin Panter
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