8000 bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) · lisroach/cpython@78cc97a · GitHub
[go: up one dir, main page]

Skip to content

Commit 78cc97a

Browse files
aeroslisroach
authored andcommitted
bpo-37478: Specify possible exceptions for os.chdir() (pythonGH-14611)
1 parent ec4f5b4 commit 78cc97a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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)
0