mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
This commit is contained in:
parent
6f2a8c0857
commit
0717b4d9b3
2 changed files with 4 additions and 0 deletions
|
@ -1599,6 +1599,9 @@ features:
|
||||||
This function can support :ref:`specifying a file descriptor <path_fd>`. The
|
This function can support :ref:`specifying a file descriptor <path_fd>`. The
|
||||||
descriptor must refer to an opened directory, not an open file.
|
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
|
.. versionadded:: 3.3
|
||||||
Added support for specifying *path* as a file descriptor
|
Added support for specifying *path* as a file descriptor
|
||||||
on some platforms.
|
on some platforms.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Added possible exceptions to the description of os.chdir().
|
Loading…
Add table
Add a link
Reference in a new issue