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

poq report at bugs.python.org
Thu Mar 22 16:56:12 CET 2012


poq <poq at gmx.com> added the comment:

> It seems not even using -S fixes the problem

That's because you try to use re and os in your except block, and the KeyboardInterrupt is raised before they are imported.

----------
nosy: +poq

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


More information about the Python-bugs-list mailing list