Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2dcb267

Browse files
authored
[3.12] gh-117114: Update os.path function availability and link to genericpath.py in os.path.rst (GH-117756)
1 parent 6a4c06b commit 2dcb267

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Doc/library/os.path.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.. module:: os.path
55
:synopsis: Operations on pathnames.
66

7-
**Source code:** :source:`Lib/posixpath.py` (for POSIX) and
7+
**Source code:** :source:`Lib/genericpath.py`, :source:`Lib/posixpath.py` (for POSIX) and
88
:source:`Lib/ntpath.py` (for Windows).
99

1010
.. index:: single: path; operations
@@ -85,8 +85,6 @@ the :mod:`glob` module.)
8585
if *paths* is empty. Unlike :func:`commonprefix`, this returns a
8686
valid path.
8787

88-
.. availability:: Unix, Windows.
89-
9088
.. versionadded:: 3.5
9189

9290
.. versionchanged:: 3.6
@@ -412,8 +410,6 @@ the :mod:`glob` module.)
412410

413411
*start* defaults to :data:`os.curdir`.
414412

415-
.. availability:: Unix, Windows.
416-
417413
.. versionchanged:: 3.6
418414
Accepts a :term:`path-like object`.
419415

@@ -424,8 +420,6 @@ the :mod:`glob` module.)
424420
This is determined by the device number and i-node number and raises an
425421
exception if an :func:`os.stat` call on either pathname fails.
426422

427-
.. availability:: Unix, Windows.
428-
429423
.. versionchanged:: 3.2
430424
Added Windows support.
431425

@@ -440,8 +434,6 @@ the :mod:`glob` module.)
440434

441435
Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same file.
442436

443-
.. availability:: Unix, Windows.
444-
445437
.. versionchanged:: 3.2
446438
Added Windows support.
447439

@@ -456,8 +448,6 @@ the :mod:`glob` module.)
456448
:func:`os.lstat`, or :func:`os.stat`. This function implements the
457449
underlying comparison used by :func:`samefile` and :func:`sameopenfile`.
458450

459-
.. availability:: Unix, Windows.
460-
461451
.. versionchanged:: 3.4
462452
Added Windows support.
463453

0 commit comments

Comments
 (0)