Skip to content

Commit 0b9454d

Browse files
committed
Doc: os.path.abspath and Path.resolve are also different
Add more explanation to point out that os.path.abspath and Path.resolve are also not equivalent.
1 parent c56f9df commit 0b9454d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/pathlib.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,9 +1195,10 @@ Below is a table mapping various :mod:`os` functions to their corresponding
11951195

11961196
.. note::
11971197

1198-
Although :func:`os.path.relpath` and :meth:`PurePath.relative_to` have some
1199-
overlapping use-cases, their semantics differ enough to warrant not
1200-
considering them equivalent.
1198+
Not all pairs of functions/methods below are equivalent. Some of them,
1199+
despite having some overlapping use-cases, have different semantics. They
1200+
include :func:`os.path.abspath` and :meth:`Path.resolve`,
1201+
:func:`os.path.relpath` and :meth:`PurePath.relative_to`.
12011202

12021203
==================================== ==============================
12031204
os and os.path pathlib

0 commit comments

Comments
 (0)