From: Pablo Galindo Salgado Date: Sat, 13 Aug 2022 18:27:44 +0000 (+0100) Subject: bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962) X-Git-Tag: v3.12.0a1~656 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7552f237a262b9b593df012fdf2ddaa0d914a1e9;p=thirdparty%2FPython%2Fcpython.git bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962) --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 637d12b61e7f..7be9a501f531 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 --------