diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2014-01-22 12:24:46 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2014-01-22 12:24:46 (GMT) |
commit | 09761e7c9cf984b8164c172fcf9f1a5994402495 (patch) | |
tree | 8abf29a20201a6d00e620daf3376599a3e9d2c1b /Misc | |
parent | 0e3b0e397e7bd986e2284e2b9ed2be00b404019c (diff) | |
download | cpython-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |