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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, pitrou, vstinner
Date 2008-08-20.22:59:49
SpamBayes Score 0.0064250478
Marked as misclassified No
Message-id <1219273189.92.0.828938557533.issue3611@psf.upfronthosting.co.za>
In-reply-to
Content
Can you try with the following patch,
"throwflag" is specific to a generator being deleted.

Index: Python/ceval.c
===================================================================
--- Python/ceval.c      (revision 65919)
+++ Python/ceval.c      (working copy)
@@ -2453,7 +2453,7 @@

                        if (b->b_type == EXCEPT_HANDLER) {
                                UNWIND_EXCEPT_HANDLER(b);
-                               if (why == WHY_EXCEPTION) {
+                               if (why == WHY_EXCEPTION && !throwflag) {
                                        Py_CLEAR(tstate->exc_type);
                                        Py_CLEAR(tstate->exc_value);
                                        Py_CLEAR(tstate->exc_traceback);
History
Date User Action Args
2008-08-20 22:59:49amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, vstinner, benjamin.peterson
2008-08-20 22:59:49amaury.forgeotdarcsetmessageid: <1219273189.92.0.828938557533.issue3611@psf.upfronthosting.co.za>
2008-08-20 22:59:49amaury.forgeotdarclinkissue3611 messages
2008-08-20 22:59:49amaury.forgeotdarccreate