summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_source_encoding.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-15 22:16:45 (GMT)
committerGitHub <noreply@github.com>2022-07-15 22:16:45 (GMT)
commit6654392587ede1c8e595a8fcdd273a02bc04ea51 (patch)
treedc68fa23a7e38ebd609748f03b11330fcd44428e /Lib/test/test_source_encoding.py
parentc5bf768a531c488a6e97288946b8002553481dc7 (diff)
downloadcpython-6654392587ede1c8e595a8fcdd273a02bc04ea51.zip
cpython-6654392587ede1c8e595a8fcdd273a02bc04ea51.tar.gz
cpython-6654392587ede1c8e595a8fcdd273a02bc04ea51.tar.bz2
Add additional pointers to pathlib's mapping to os.path functions (GH-94828)
* Add additional pointers to pathlib's mapping to os.path functions os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py". Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here. * Update Doc/library/pathlib.rst Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 3789c635772fbdeb5d0fc32aa811fd6b1d935a60) Co-authored-by: Chris Adams <chris@improbable.org>
Diffstat (limited to 'Lib/test/test_source_encoding.py')
0 files changed, 0 insertions, 0 deletions