[issue14228] SIGINT (Ctrl-C) not caught at startup
Antoine Pitrou
report at bugs.python.org
Thu Mar 8 16:53:09 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
Try to enclose the whole code (including the imports) in the try...except block. I'm not sure why this matters, though.
If you want Python to have a different return code when terminated by a KeyboardInterrupt, then I agree it is a valid feature request.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14228>
_______________________________________
More information about the Python-bugs-list
mailing list