bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)

This commit is contained in:
Pablo Galindo Salgado 2022-08-13 19:27:44 +01:00 committed by GitHub
parent 1402d2ceca
commit 7552f237a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
--------