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 ezio.melotti
Recipients Sworddragon, ezio.melotti
Date 2013-08-26.06:29:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377498546.84.0.99094609164.issue18836@psf.upfronthosting.co.za>
In-reply-to
Content
> The third CTRL + C will cause a KeyboardInterrupt.

This is expected.  The first ctrl+c interrupts the first sleep and goes in the second try, executing the second sleep.  The second ctrl+c interrupts the second sleep and goes in the second except where it finds the third sleep.  Here a third ctrl+c will interrupt the sleep and since this line is not in a try block nothing will catch the KeyboardInterrupt.

Are you saying that if the user keeps hitting ctrl+c you would need an endless chain of nested try/except in order to catch them all?
History
Date User Action Args
2013-08-26 06:29:06ezio.melottisetrecipients: + ezio.melotti, Sworddragon
2013-08-26 06:29:06ezio.melottisetmessageid: <1377498546.84.0.99094609164.issue18836@psf.upfronthosting.co.za>
2013-08-26 06:29:06ezio.melottilinkissue18836 messages
2013-08-26 06:29:06ezio.melotticreate