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 vstinner
Recipients Valentin David, gps, ncoghlan, vstinner, yselivanov
Date 2016-05-25.13:57:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464184631.57.0.462130333719.issue27122@psf.upfronthosting.co.za>
In-reply-to
Content
Workaround, or maybe fix?, for the issue:

diff -r 0af15b8ef3b2 Lib/contextlib.py
--- a/Lib/contextlib.py Thu May 12 10:37:58 2016 +0300
+++ b/Lib/contextlib.py Wed May 25 15:56:50 2016 +0200
@@ -87,6 +87,8 @@ class _GeneratorContextManager(ContextDe
                 # (see PEP 479).
                 if exc.__cause__ is value:
                     return False
+                if exc is value:
+                    return
                 raise
             except:
                 # only re-raise if it's *not* the exception that was
History
Date User Action Args
2016-05-25 13:57:11vstinnersetrecipients: + vstinner, ncoghlan, gps, yselivanov, Valentin David
2016-05-25 13:57:11vstinnersetmessageid: <1464184631.57.0.462130333719.issue27122@psf.upfronthosting.co.za>
2016-05-25 13:57:11vstinnerlinkissue27122 messages
2016-05-25 13:57:11vstinnercreate