File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments