This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, telmich
Date 2012-03-08.15:53:08
SpamBayes Score 5.16461e-05
Marked as misclassified No
Message-id <1331221989.4.0.447680883632.issue14228@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-03-08 15:53:09pitrousetrecipients: + pitrou, telmich
2012-03-08 15:53:09pitrousetmessageid: <1331221989.4.0.447680883632.issue14228@psf.upfronthosting.co.za>
2012-03-08 15:53:08pitroulinkissue14228 messages
2012-03-08 15:53:08pitroucreate