Message196182
> 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? |
|
Date |
User |
Action |
Args |
2013-08-26 06:29:06 | ezio.melotti | set | recipients:
+ ezio.melotti, Sworddragon |
2013-08-26 06:29:06 | ezio.melotti | set | messageid: <1377498546.84.0.99094609164.issue18836@psf.upfronthosting.co.za> |
2013-08-26 06:29:06 | ezio.melotti | link | issue18836 messages |
2013-08-26 06:29:06 | ezio.melotti | create | |
|