bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)

This commit is contained in:
Kyle Stanley 2019-07-06 21:20:15 -04:00 committed by Terry Jan Reedy
parent 6f2a8c0857
commit 0717b4d9b3
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1 @@
Added possible exceptions to the description of os.chdir().