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

miss-islington webhook-mailer at python.org
Sat Aug 13 14:34:23 EDT 2022


https://github.com/python/cpython/commit/63690996e8e8435b7cb9f77db82761316eefef85
commit: 63690996e8e8435b7cb9f77db82761316eefef85
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-08-13T11:34:17-07:00
summary:

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

(cherry picked from commit 7552f237a262b9b593df012fdf2ddaa0d914a1e9)

Co-authored-by: Pablo Galindo Salgado <Pablogsal at gmail.com>

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 0c37cc451719..6c8f7913a346 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -478,6 +478,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