diff options
author | Nice Zombies <nineteendo19d0@gmail.com> | 2024-03-25 22:55:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 22:55:11 (GMT) |
commit | 0821923aa979a72464c5da8dfa53a719bba5801c (patch) | |
tree | 1486b42a70c2cfbbc230ee56a9812b164754ea66 /Doc/library/os.path.rst | |
parent | c2276176d543a2fc2d57709c2787f99850fbb073 (diff) | |
download | cpython-0821923aa979a72464c5da8dfa53a719bba5801c.zip cpython-0821923aa979a72464c5da8dfa53a719bba5801c.tar.gz cpython-0821923aa979a72464c5da8dfa53a719bba5801c.tar.bz2 |
gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r-- | Doc/library/os.path.rst | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 3ee2b7d..dcc877d 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -4,7 +4,7 @@ .. module:: os.path :synopsis: Operations on pathnames. -**Source code:** :source:`Lib/posixpath.py` (for POSIX) and +**Source code:** :source:`Lib/genericpath.py`, :source:`Lib/posixpath.py` (for POSIX) and :source:`Lib/ntpath.py` (for Windows). .. index:: single: path; operations @@ -85,8 +85,6 @@ the :mod:`glob` module.) if *paths* is empty. Unlike :func:`commonprefix`, this returns a valid path. - .. availability:: Unix, Windows. - .. versionadded:: 3.5 .. versionchanged:: 3.6 @@ -324,10 +322,11 @@ the :mod:`glob` module.) Dev Drives. See `the Windows documentation <https://learn.microsoft.com/windows/dev-drive/>`_ for information on enabling and creating Dev Drives. - .. availability:: Windows. - .. versionadded:: 3.12 + .. versionchanged:: 3.13 + The function is now available on all platforms, and will always return ``False`` on those that have no support for Dev Drives + .. function:: isreserved(path) @@ -442,8 +441,6 @@ the :mod:`glob` module.) *start* defaults to :data:`os.curdir`. - .. availability:: Unix, Windows. - .. versionchanged:: 3.6 Accepts a :term:`path-like object`. @@ -454,8 +451,6 @@ the :mod:`glob` module.) This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails. - .. availability:: Unix, Windows. - .. versionchanged:: 3.2 Added Windows support. @@ -470,8 +465,6 @@ the :mod:`glob` module.) Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same file. - .. availability:: Unix, Windows. - .. versionchanged:: 3.2 Added Windows support. @@ -486,8 +479,6 @@ the :mod:`glob` module.) :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`. - .. availability:: Unix, Windows. - .. versionchanged:: 3.4 Added Windows support. |