diff options
| author | Kyle Stanley <aeros167@gmail.com> | 2019-07-06 21:20:15 -0400 |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-06 21:20:15 -0400 |
| commit | 0717b4d9b3899c5c2ca13031e4ff619a15a4d368 (patch) | |
| tree | c49ca4d2a95b9cb48101cb7707074aee6e637b8b /Doc | |
| parent | 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b (diff) | |
| download | cpython-git-0717b4d9b3899c5c2ca13031e4ff619a15a4d368.tar.gz | |
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/library/os.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 6e8df88cf0..760c05c6e5 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. |
