diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2017-06-09 15:21:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2017-06-09 15:21:47 (GMT) |
commit | 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52 (patch) | |
tree | 04296787a6bbf099a38d2b24ac91fc0c83a8e7df /Misc | |
parent | 3b5cf85edc188345668f987c824a2acb338a7816 (diff) | |
download | cpython-57161aac5eb9bcb0b43e551a1937ff0a84c1ec52.zip cpython-57161aac5eb9bcb0b43e551a1937ff0a84c1ec52.tar.gz cpython-57161aac5eb9bcb0b43e551a1937ff0a84c1ec52.tar.bz2 |
bpo-30266: support "= None" pattern in AbstractContextManager (#1448)
contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -410,6 +410,10 @@ Library - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running coroutine and the coroutine returned without any more ``await``. +- bpo-30266: contextlib.AbstractContextManager now supports anti-registration + by setting __enter__ = None or __exit__ = None, following the pattern + introduced in bpo-25958. Patch by Jelle Zijlstra. + - bpo-30340: Enhanced regular expressions optimization. This increased the performance of matching some patterns up to 25 times. |