mirror of
https://github.com/python/cpython.git
synced 2025-12-01 23:32:16 +00:00
gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)
This commit is contained in:
parent
c2276176d5
commit
0821923aa9
5 changed files with 39 additions and 57 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue