https://github.com/python/cpython/commit/43d8492eb93151839fcc4ca2a043e2d4b6091762
commit: 43d8492eb93151839fcc4ca2a043e2d4b6091762
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-07-06T15:48:22Z
summary:

[3.13] Docs: Link to the `contextlib.chdir` context manager in the `os.chdir` 
docs (GH-153152) (#153214)

(cherry picked from commit f155dbed4ef30dec5d00b8b09524b0d9f63965bc)

Co-authored-by: Cody Maloney <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index af6060d27009f5..552494de970c0d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2078,6 +2078,11 @@ features:
 
    .. audit-event:: os.chdir path os.chdir
 
+   .. seealso::
+
+      The :func:`contextlib.chdir` context manager, which changes the current
+      working directory on entering and restores the previous one on exit.
+
    .. versionchanged:: 3.3
       Added support for specifying *path* as a file descriptor
       on some platforms.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to