summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorNice Zombies <nineteendo19d0@gmail.com>2024-04-15 14:49:44 (GMT)
committerGitHub <noreply@github.com>2024-04-15 14:49:44 (GMT)
commit2dcb267324b3161609622bb9e67f6f4eeaa22ae3 (patch)
treeb453692524a321ef3c4014a66c5f98b586622b1c /Doc/library/os.path.rst
parent6a4c06bcb341628d720ea5b2d0cb5500db8b7694 (diff)
downloadcpython-2dcb267324b3161609622bb9e67f6f4eeaa22ae3.zip
cpython-2dcb267324b3161609622bb9e67f6f4eeaa22ae3.tar.gz
cpython-2dcb267324b3161609622bb9e67f6f4eeaa22ae3.tar.bz2
[3.12] gh-117114: Update os.path function availability and link to genericpath.py in os.path.rst (GH-117756)
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst12
1 files changed, 1 insertions, 11 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 6cb2275..8a4219c 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
@@ -412,8 +410,6 @@ the :mod:`glob` module.)
*start* defaults to :data:`os.curdir`.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.6
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
exception if an :func:`os.stat` call on either pathname fails.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.2
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.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.2
Added Windows support.
@@ -456,8 +448,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.