diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-03-31 18:14:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 18:14:48 (GMT) |
commit | 752e18389ed03087b51b38eac9769ef8dfd167b7 (patch) | |
tree | 6e24f7ad5b484488a4f5873ff37b416e266ea9d3 /Doc | |
parent | bfc57d43d8766120ba0c8f3f6d7b2ac681a81d8a (diff) | |
download | cpython-752e18389ed03087b51b38eac9769ef8dfd167b7.zip cpython-752e18389ed03087b51b38eac9769ef8dfd167b7.tar.gz cpython-752e18389ed03087b51b38eac9769ef8dfd167b7.tar.bz2 |
GH-114575: Rename `PurePath.pathmod` to `PurePath.parser` (#116513)
And rename the private base class from `PathModuleBase` to `ParserBase`.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pathlib.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.13.rst | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 4fba362..9122df7 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -303,10 +303,10 @@ Methods and properties Pure paths provide the following methods and properties: -.. attribute:: PurePath.pathmod +.. attribute:: PurePath.parser The implementation of the :mod:`os.path` module used for low-level path - operations: either :mod:`posixpath` or :mod:`ntpath`. + parsing and joining: either :mod:`posixpath` or :mod:`ntpath`. .. versionadded:: 3.13 diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index f50364a..45f7f50 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -524,6 +524,10 @@ pathlib shell-style wildcards, including the recursive wildcard "``**``". (Contributed by Barney Gale in :gh:`73435`.) +* Add :attr:`pathlib.PurePath.parser` class attribute that stores the + implementation of :mod:`os.path` used for low-level path parsing and + joining: either ``posixpath`` or ``ntpath``. + * Add *follow_symlinks* keyword-only argument to :meth:`pathlib.Path.glob`, :meth:`~pathlib.Path.rglob`, :meth:`~pathlib.Path.is_file`, :meth:`~pathlib.Path.is_dir`, :meth:`~pathlib.Path.owner`, |