From 3eb284622579d04289d0e3b2e97fbf56df6e845e Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Wed, 11 Nov 2020 00:19:11 +0900 Subject: Update whatsnew for 3.10 release about addition of contextlib.aclosing (GH-23217) --- Doc/whatsnew/3.10.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index a735bf2..95cdb06 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 ------ -- cgit v0.12