Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0717b4d

Browse files
aerosterryjreedy
authored andcommitted
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
1 parent 6f2a8c0 commit 0717b4d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/os.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,9 @@ features:
15991599
This function can support :ref:`specifying a file descriptor <path_fd>`. The
16001600
descriptor must refer to an opened directory, not an open file.
16011601

1602+
This function can raise :exc:`OSError` subclasses such as
1603+
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`.
1604+
16021605
.. versionadded:: 3.3
16031606
Added support for specifying *path* as a file descriptor
16041607
on some platforms.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added possible exceptions to the description of os.chdir().

0 commit comments

Comments
 (0)