]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Sat, 13 Aug 2022 18:27:44 +0000 (19:27 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Aug 2022 18:27:44 +0000 (19:27 +0100)
Doc/whatsnew/3.11.rst

index 637d12b61e7f904892ef2b2c91e015bb3784df44..7be9a501f53192e7943fb72eabb112dc3b292c31 100644 (file)
@@ -495,6 +495,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
 --------