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 Sworddragon
Recipients Sworddragon
Date 2013-08-26.06:11:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377497509.71.0.034362539056.issue18836@psf.upfronthosting.co.za>
In-reply-to
Content
On a try/except-block if an exception raises (for example KeyboardInterrupt) the except block could cause another exception and if this block tries to catch it too the nested except block could cause another exception again. This goes into an unlimited recursion.

In the attachments is an example of such a problem (race_condition_fast.py). But as it is called a "race condition" it is nearly impossible to reproduce it by a human. For this case I have adjusted the example (race_condition_slow.py). The third CTRL + C will cause a KeyboardInterrupt.
History
Date User Action Args
2013-08-26 06:11:49Sworddragonsetrecipients: + Sworddragon
2013-08-26 06:11:49Sworddragonsetmessageid: <1377497509.71.0.034362539056.issue18836@psf.upfronthosting.co.za>
2013-08-26 06:11:49Sworddragonlinkissue18836 messages
2013-08-26 06:11:49Sworddragoncreate