Skip to content

Commit 259f9fe

Browse files
committed
Add versionchanged to listdir, scandir, listxattr doc
1 parent a894262 commit 259f9fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/library/os.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,10 @@ features:
24092409
.. versionchanged:: 3.6
24102410
Accepts a :term:`path-like object`.
24112411

2412+
.. versionchanged:: next
2413+
``os.listdir(-1)`` now fails with ``OSError(errno.EBADF)`` rather than
2414+
listing the current directory.
2415+
24122416

24132417
.. function:: listdrives()
24142418

@@ -2939,6 +2943,10 @@ features:
29392943
.. versionchanged:: 3.7
29402944
Added support for :ref:`file descriptors <path_fd>` on Unix.
29412945

2946+
.. versionchanged:: next
2947+
``os.scandir(-1)`` now fails with ``OSError(errno.EBADF)`` rather than
2948+
listing the current directory.
2949+
29422950

29432951
.. class:: DirEntry
29442952

@@ -4574,6 +4582,10 @@ These functions are all available on Linux only.
45744582
.. versionchanged:: 3.6
45754583
Accepts a :term:`path-like object`.
45764584

4585+
.. versionchanged:: next
4586+
``os.listxattr(-1)`` now fails with ``OSError(errno.EBADF)`` rather than
4587+
listing extended attributes of the current directory.
4588+
45774589

45784590
.. function:: removexattr(path, attribute, *, follow_symlinks=True)
45794591

0 commit comments

Comments
 (0)