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

pablogsal webhook-mailer at python.org
Sat Aug 13 14:27:50 EDT 2022


https://github.com/python/cpython/commit/7552f237a262b9b593df012fdf2ddaa0d914a1e9
commit: 7552f237a262b9b593df012fdf2ddaa0d914a1e9
branch: main
author: Pablo Galindo Salgado <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2022-08-13T19:27:44+01:00
summary:

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

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 637d12b61e7..7be9a501f53 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
 --------
 



More information about the Python-checkins mailing list