Skip to content

Commit 6369099

Browse files
bpo-25625: Document contextlib.chdir in the 3.11 what's new (GH-95962)
(cherry picked from commit 7552f23) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
1 parent df9c12e commit 6369099

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,13 @@ asyncio
478478
holding a group of tasks that will wait for all of them upon exit.
479479
(Contributed by Yury Seliganov and others.)
480480

481+
contextlib
482+
----------
483+
484+
Added non parallel-safe :func:`~contextlib.chdir` context manager to change
485+
the current working directory and then restore it on exit. Simple wrapper
486+
around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)
487+
481488
datetime
482489
--------
483490

0 commit comments

Comments
 (0)