mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
[3.12] gh-117114: Update os.path function availability and link to genericpath.py in os.path.rst (GH-117756)
This commit is contained in:
parent
6a4c06bcb3
commit
2dcb267324
1 changed files with 1 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
||||||
.. module:: os.path
|
.. module:: os.path
|
||||||
:synopsis: Operations on pathnames.
|
: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).
|
:source:`Lib/ntpath.py` (for Windows).
|
||||||
|
|
||||||
.. index:: single: path; operations
|
.. index:: single: path; operations
|
||||||
|
@ -85,8 +85,6 @@ the :mod:`glob` module.)
|
||||||
if *paths* is empty. Unlike :func:`commonprefix`, this returns a
|
if *paths* is empty. Unlike :func:`commonprefix`, this returns a
|
||||||
valid path.
|
valid path.
|
||||||
|
|
||||||
.. availability:: Unix, Windows.
|
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
.. versionchanged:: 3.6
|
.. versionchanged:: 3.6
|
||||||
|
@ -412,8 +410,6 @@ the :mod:`glob` module.)
|
||||||
|
|
||||||
*start* defaults to :data:`os.curdir`.
|
*start* defaults to :data:`os.curdir`.
|
||||||
|
|
||||||
.. availability:: Unix, Windows.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.6
|
.. versionchanged:: 3.6
|
||||||
Accepts a :term:`path-like object`.
|
Accepts a :term:`path-like object`.
|
||||||
|
|
||||||
|
@ -424,8 +420,6 @@ the :mod:`glob` module.)
|
||||||
This is determined by the device number and i-node number and raises an
|
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.
|
exception if an :func:`os.stat` call on either pathname fails.
|
||||||
|
|
||||||
.. availability:: Unix, Windows.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
Added Windows support.
|
Added Windows support.
|
||||||
|
|
||||||
|
@ -440,8 +434,6 @@ the :mod:`glob` module.)
|
||||||
|
|
||||||
Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same file.
|
Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same file.
|
||||||
|
|
||||||
.. availability:: Unix, Windows.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
Added Windows support.
|
Added Windows support.
|
||||||
|
|
||||||
|
@ -456,8 +448,6 @@ the :mod:`glob` module.)
|
||||||
:func:`os.lstat`, or :func:`os.stat`. This function implements the
|
:func:`os.lstat`, or :func:`os.stat`. This function implements the
|
||||||
underlying comparison used by :func:`samefile` and :func:`sameopenfile`.
|
underlying comparison used by :func:`samefile` and :func:`sameopenfile`.
|
||||||
|
|
||||||
.. availability:: Unix, Windows.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.4
|
.. versionchanged:: 3.4
|
||||||
Added Windows support.
|
Added Windows support.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue