]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update whatsnew for 3.10 release about addition of contextlib.aclosing (GH-23217)
authorJoongi Kim <joongi@lablup.com>
Tue, 10 Nov 2020 15:19:11 +0000 (00:19 +0900)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 15:19:11 +0000 (17:19 +0200)
Doc/whatsnew/3.10.rst

index a735bf235435cacad08887674d6f769a31424020..95cdb06f997b19b5e040cee67ed8e1699b29db75 100644 (file)
@@ -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
 ------