summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2014-01-22 12:24:46 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2014-01-22 12:24:46 (GMT)
commit09761e7c9cf984b8164c172fcf9f1a5994402495 (patch)
tree8abf29a20201a6d00e620daf3376599a3e9d2c1b /Misc
parent0e3b0e397e7bd986e2284e2b9ed2be00b404019c (diff)
downloadcpython-09761e7c9cf984b8164c172fcf9f1a5994402495.zip
cpython-09761e7c9cf984b8164c172fcf9f1a5994402495.tar.gz
cpython-09761e7c9cf984b8164c172fcf9f1a5994402495.tar.bz2
Issue #20317: Don't create a reference loop in ExitStack
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 66f5220..a89762d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -50,6 +50,12 @@ Core and Builtins
Library
-------
+- Issue #20317: ExitStack.__exit__ could create a self-referential loop if an
+ exception raised by a cleanup operation already had its context set
+ correctly (for example, by the @contextmanager decorator). The infinite
+ loop this caused is now avoided by checking if the expected context is
+ already set before trying to fix it.
+
- Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond
is now rounded to one millisecond, instead of being rounded to zero.