summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-12-24 10:57:11 (GMT)
committerGitHub <noreply@github.com>2023-12-24 10:57:11 (GMT)
commit1f06baeabd7ef64b7be6af7cb6fc03ec410b1aa2 (patch)
treee444e19cb3748885d3f7ad31329ea050e8a5eb14 /Doc/library
parent53330f167792a2947ab8b0faafb11019d7fb09b6 (diff)
downloadcpython-1f06baeabd7ef64b7be6af7cb6fc03ec410b1aa2.zip
cpython-1f06baeabd7ef64b7be6af7cb6fc03ec410b1aa2.tar.gz
cpython-1f06baeabd7ef64b7be6af7cb6fc03ec410b1aa2.tar.bz2
gh-113191: Add support of os.fchmod() on Windows (GH-113192)
Also support a file descriptor in os.chmod().
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/os.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 1138cc1..6b6e62a 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1001,11 +1001,14 @@ as internal buffering of data.
.. audit-event:: os.chmod path,mode,dir_fd os.fchmod
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
The function is limited on Emscripten and WASI, see
:ref:`wasm-availability` for more information.
+ .. versionchanged:: 3.13
+ Added support on Windows.
+
.. function:: fchown(fd, uid, gid)
@@ -2077,7 +2080,8 @@ features:
Accepts a :term:`path-like object`.
.. versionchanged:: 3.13
- Added support for the *follow_symlinks* argument on Windows.
+ Added support for a file descriptor and the *follow_symlinks* argument
+ on Windows.
.. function:: chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True)