summaryrefslogtreecommitdiff
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorsvelankar <siddharth.velankar@gmail.com>2017-04-11 05:11:13 -0400
committerNick Coghlan <ncoghlan@gmail.com>2017-04-11 19:11:13 +1000
commit00c75e9a45ff0366c185e9e8a2e23af5a35481b0 (patch)
tree15be21a9abc45df371cfccdf11cb25f3e82a1594 /Misc/NEWS
parent6fab78e9027f9ebd6414995580781b480433e595 (diff)
downloadcpython-git-00c75e9a45ff0366c185e9e8a2e23af5a35481b0.tar.gz
bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949)
contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index cc0a4d7593..d8b1ccb43a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -306,6 +306,9 @@ Extension Modules
Library
-------
+- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
+ contextlib.contextmanager.
+ Patch by Siddharth Velankar.
- bpo-26187: Test that sqlite3 trace callback is not called multiple
times when schema is changing. Indirectly fixed by switching to