diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-07-19 17:59:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 17:59:55 (GMT) |
commit | c6c5665ee0c0a5ddc96da255c9a62daa332c32b3 (patch) | |
tree | ae67a581c9c4d9fcfcc90b505a0492baae18c6d4 /Doc | |
parent | a1a3193990cd6658c1fe859b88a2bc03971a16df (diff) | |
download | cpython-c6c5665ee0c0a5ddc96da255c9a62daa332c32b3.zip cpython-c6c5665ee0c0a5ddc96da255c9a62daa332c32b3.tar.gz cpython-c6c5665ee0c0a5ddc96da255c9a62daa332c32b3.tar.bz2 |
GH-100502: Add `pathlib.PurePath.pathmod` attribute (GH-106533)
This instance attribute stores the implementation of `os.path` used for
low-level path operations: either `posixpath` or `ntpath`.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pathlib.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index af81df2..01dabe2 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -303,6 +303,13 @@ Methods and properties Pure paths provide the following methods and properties: +.. attribute:: PurePath.pathmod + + The implementation of the :mod:`os.path` module used for low-level path + operations: either ``posixpath`` or ``ntpath``. + + .. versionadded:: 3.13 + .. attribute:: PurePath.drive A string representing the drive letter or name, if any:: |