Skip to content

Commit

Permalink
Fix links to magic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Oct 3, 2023
1 parent a3b2cad commit 4c1814d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,11 @@ Virtual paths

Unlike :class:`PurePath`, this class does not define any of the following
magic methods:
:meth:`~os.PathLike.__fspath__`, :meth:`__bytes__`,
:meth:`__reduce__`, :meth:`__hash__`, :meth:`__eq__`,
:meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, :meth:`__ge__`
:meth:`~os.PathLike.__fspath__`, :meth:`~object.__bytes__`,
:meth:`~object.__reduce__`,
:meth:`~object.__hash__`, :meth:`~object.__eq__`,
:meth:`~object.__lt__`, :meth:`~object.__le__`,
:meth:`~object.__gt__`, :meth:`~object.__ge__`.

.. versionadded:: 3.13

Expand All @@ -1625,9 +1627,11 @@ Virtual paths

Like its superclass :class:`PurePathBase` (and unlike :class:`PurePath` and
:class:`Path`), this class does not define any of the following magic methods:
:meth:`~os.PathLike.__fspath__`, :meth:`__bytes__`,
:meth:`__reduce__`, :meth:`__hash__`, :meth:`__eq__`,
:meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, :meth:`__ge__`.
:meth:`~os.PathLike.__fspath__`, :meth:`~object.__bytes__`,
:meth:`~object.__reduce__`,
:meth:`~object.__hash__`, :meth:`~object.__eq__`,
:meth:`~object.__lt__`, :meth:`~object.__le__`,
:meth:`~object.__gt__`, :meth:`~object.__ge__`.
In all other respects, its interface is identical to :class:`Path`.

The default implementations of the most basic methods, like :meth:`stat`
Expand Down

0 comments on commit 4c1814d

Please sign in to comment.