Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14228>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to