bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
authorKyle Stanley <aeros167@gmail.com>
Sun, 7 Jul 2019 01:20:15 +0000 (21:20 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 7 Jul 2019 01:20:15 +0000 (21:20 -0400)
Doc/library/os.rst
Misc/NEWS.d/next/Documentation/2019-07-06-00-57-27.bpo-37478.B0ioLw.rst [new file with mode: 0644]

index 6e8df88cf0528b0fb80f3f51a7edf2bd5de3d11f..760c05c6e52d5104db4ffc8b455574c24f1f5178 100644 (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.
diff --git a/Misc/NEWS.d/next/Documentation/2019-07-06-00-57-27.bpo-37478.B0ioLw.rst b/Misc/NEWS.d/next/Documentation/2019-07-06-00-57-27.bpo-37478.B0ioLw.rst
new file mode 100644 (file)
index 0000000..55b1366
--- /dev/null
@@ -0,0 +1 @@
+Added possible exceptions to the description of os.chdir().
\ No newline at end of file