summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-06-14 16:19:20 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-06-14 16:19:20 (GMT)
commitba2ecd68414b9c53d00560579f5bc13459bc0449 (patch)
tree0f23b73c117c222dbb5b3781afb3f7dc3462a9f9 /Misc
parentc72828ba3377a2139f36b8fdc9b0cbd5dd798712 (diff)
downloadcpython-ba2ecd68414b9c53d00560579f5bc13459bc0449.zip
cpython-ba2ecd68414b9c53d00560579f5bc13459bc0449.tar.gz
cpython-ba2ecd68414b9c53d00560579f5bc13459bc0449.tar.bz2
Issue #27123: When an exception is raised within the context being
managed by a contextlib.ExitStack() and one of the exit stack generators catches and raises it in a chain, do not re-raise the original exception when exiting, let the new chained one through. This avoids the PEP 479 bug described in issue25782.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7940cdc..c85f6d0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,12 @@ Core and Builtins
Library
-------
+- Issue #27123: When an exception is raised within the context being managed
+ by a contextlib.ExitStack() and one of the exit stack generators
+ catches and raises it in a chain, do not re-raise the original exception
+ when exiting, let the new chained one through. This avoids the PEP 479
+ bug described in issue25782.
+
- Issue #27278: Fix os.urandom() implementation using getrandom() on Linux.
Truncate size to INT_MAX and loop until we collected enough random bytes,
instead of casting a directly Py_ssize_t to int.