summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-08-13 18:27:44 (GMT)
committerGitHub <noreply@github.com>2022-08-13 18:27:44 (GMT)
commit7552f237a262b9b593df012fdf2ddaa0d914a1e9 (patch)
treea1992eb1d3d1d351ee44835eb6d2eb54085caad2
parent1402d2ceca8ccef8c3538906b3f547365891d391 (diff)
downloadcpython-7552f237a262b9b593df012fdf2ddaa0d914a1e9.zip
cpython-7552f237a262b9b593df012fdf2ddaa0d914a1e9.tar.gz
cpython-7552f237a262b9b593df012fdf2ddaa0d914a1e9.tar.bz2
bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)
-rw-r--r--Doc/whatsnew/3.11.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 637d12b..7be9a50 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -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
--------