diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-10 09:12:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 09:12:28 (GMT) |
commit | 2fc80814bf55445fb2cc56b25ec54d8e308e3408 (patch) | |
tree | 20fd204c6a10e7c811bf4f27661c9dadea42dcf2 /Misc/NEWS.d | |
parent | 36886726a2fe9a2c8511cfb405704f39cf184d7c (diff) | |
download | cpython-2fc80814bf55445fb2cc56b25ec54d8e308e3408.zip cpython-2fc80814bf55445fb2cc56b25ec54d8e308e3408.tar.gz cpython-2fc80814bf55445fb2cc56b25ec54d8e308e3408.tar.bz2 |
[3.12] gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499) (#110588)
contextmanager and asynccontextmanager context managers now close an invalid
underlying generator object that yields more then one value.
(cherry picked from commit 96fed66a65097eac2dc528ce29c9ba676bb07689)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-10-07-13-50-12.gh-issue-110378.Y4L8fl.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-10-07-13-50-12.gh-issue-110378.Y4L8fl.rst b/Misc/NEWS.d/next/Library/2023-10-07-13-50-12.gh-issue-110378.Y4L8fl.rst new file mode 100644 index 0000000..ef5395f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-10-07-13-50-12.gh-issue-110378.Y4L8fl.rst @@ -0,0 +1,3 @@ +:func:`~contextlib.contextmanager` and +:func:`~contextlib.asynccontextmanager` context managers now close an invalid +underlying generator object that yields more then one value. |