]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-25625: Document contextlib.chdir in the 3.11 what's new (GH-95962)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Aug 2022 18:34:17 +0000 (11:34 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Aug 2022 18:34:17 +0000 (11:34 -0700)
(cherry picked from commit 7552f237a262b9b593df012fdf2ddaa0d914a1e9)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Doc/whatsnew/3.11.rst

index 0c37cc451719ff42fe7fae20d6486d9d097b97b3..6c8f7913a346dc577f62e8f5eb7fd0e0bab8cef9 100644 (file)
@@ -478,6 +478,13 @@ asyncio
   holding a group of tasks that will wait for all of them upon exit.
   (Contributed by Yury Seliganov and others.)
 
+contextlib
+----------
+
+Added non parallel-safe :func:`~contextlib.chdir` context manager to change
+the current working directory and then restore it on exit. Simple wrapper
+around :func:`~os.chdir`. (Contributed by Filipe LaĆ­ns in :issue:`25625`)
+
 datetime
 --------