From 52458cb4fee673b02c5411f20fa8798bd6fa41e1 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sat, 13 Aug 2022 19:25:48 +0100 Subject: [PATCH] bpo-25625: Document contextlib.chdir in the 3.11 what's new --- Doc/whatsnew/3.11.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 637d12b61e7f90..7be9a501f53192 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 --------