Skip to content

Commit 7552f23

Browse files
authored
bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)
1 parent 1402d2c commit 7552f23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/whatsnew/3.11.rst

+7
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,13 @@ asyncio
495495
holding a group of tasks that will wait for all of them upon exit.
496496
(Contributed by Yury Seliganov and others.)
497497

498+
contextlib
499+
----------
500+
501+
Added non parallel-safe :func:`~contextlib.chdir` context manager to change
502+
the current working directory and then restore it on exit. Simple wrapper
503+
around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)
504+
498505
datetime
499506
--------
500507

0 commit comments

Comments
 (0)