diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 7b043f257ca0b5..17ba0d73f5454d 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2180,6 +2180,12 @@ features: .. audit-event:: os.chdir path os.chdir + .. seealso:: + + Context manager :func:`contextlib.chdir` + Changes the 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.