[issue14228] It is impossible to catch sigint on startup in python code

R. David Murray report at bugs.python.org
Mon Mar 19 20:10:07 CET 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

If one could distinguish that python had ended because of a sigint from the error code, then it would be possible for the caller to throw away stderr in that case.  I agree with the OP that that having to deal with the traceback when you know what you want instead is a bit of a pain, but it may be better than an unclean shutdown.  (I don't know if it is, because I don't know the possible failure modes from an unclean shutdown of the Python startup code).

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14228>
_______________________________________


More information about the Python-bugs-list mailing list