Skip to content

Commit

Permalink
bpo-37478: Specify possible exceptions for os.chdir() (pythonGH-14611)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeros authored and terryjreedy committed Jul 7, 2019
1 parent 6f2a8c0 commit 0717b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added possible exceptions to the description of os.chdir().

0 comments on commit 0717b4d

Please sign in to comment.