From: Joongi Kim Date: Tue, 10 Nov 2020 15:19:11 +0000 (+0900) Subject: Update whatsnew for 3.10 release about addition of contextlib.aclosing (GH-23217) X-Git-Tag: v3.10.0a3~234 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3eb284622579d04289d0e3b2e97fbf56df6e845e;p=thirdparty%2FPython%2Fcpython.git Update whatsnew for 3.10 release about addition of contextlib.aclosing (GH-23217) --- diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index a735bf235435..95cdb06f997b 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -176,6 +176,13 @@ codecs Add a :func:`codecs.unregister` function to unregister a codec search function. (Contributed by Hai Shi in :issue:`41842`.) +contextlib +---------- + +Add a :func:`contextlib.aclosing` context manager to safely close async generators +and objects representing asynchronously released resources. +(Contributed by Joongi Kim and John Belmonte in :issue:`41229`.) + curses ------