summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-07 02:18:50 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-07 02:18:50 (GMT)
commit4e6bfc4c605d92d2395fbcded9cf45cdd1ced810 (patch)
tree12a1f0c85cb5cb6f058df9893c964f224c52561e /Doc/library/os.rst
parent90631f9bc5f78ec6cdc2096d5c5ae26e41e5f150 (diff)
downloadcpython-4e6bfc4c605d92d2395fbcded9cf45cdd1ced810.zip
cpython-4e6bfc4c605d92d2395fbcded9cf45cdd1ced810.tar.gz
cpython-4e6bfc4c605d92d2395fbcded9cf45cdd1ced810.tar.bz2
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)
(cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 6e8df88..760c05c 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1599,6 +1599,9 @@ features:
This function can support :ref:`specifying a file descriptor <path_fd>`. The
descriptor must refer to an opened directory, not an open file.
+ This function can raise :exc:`OSError` subclasses such as
+ :exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`.
+
.. versionadded:: 3.3
Added support for specifying *path* as a file descriptor
on some platforms.