diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index b5881fd5f23afe..806b7a3b842808 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -131,9 +131,9 @@ Summary :meth:`PurePath.full_match(pattern, case_sensitive) ` Match against the provided glob-style pattern :meth:`PurePath.match(pattern, case_sensitive) ` Match against the provided non-recursive glob-style pattern :meth:`PurePath.relative_to(other, walk_up) ` Version of this path relative to the *other* path -:meth:`PurePath.with_name(name) ` New path with the :attr:`Path.name` changed -:meth:`PurePath.with_stem(stem) ` New path with the :attr:`Path.stem` changed -:meth:`PurePath.with_suffix(suffix) ` New path with the :attr:`Path.suffix` changed +:meth:`PurePath.with_name(name) ` New path with the :attr:`PurePath.name` changed +:meth:`PurePath.with_stem(stem) ` New path with the :attr:`PurePath.stem` changed +:meth:`PurePath.with_suffix(suffix) ` New path with the :attr:`PurePath.suffix` changed :meth:`PurePath.with_segments(*pathsegments) ` New path by combining the given *pathsegments* **Concrete paths**