]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-121462: pathlib docs: improve table of corresponding os/os.path functions...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Jul 2024 17:19:09 +0000 (19:19 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jul 2024 17:19:09 +0000 (17:19 +0000)
commita93f97c56d4b7308462caa5297248f110937b848
tree61ed234ef08728da6dac394454639eb76a154833
parente122d2adfa97413bafaefecb3e7d98f65d93cac6
[3.13] GH-121462: pathlib docs: improve table of corresponding os/os.path functions (GH-121465) (#122359)

Re-order table of corresponding functions with the following priorities:

1. Pure functionality is at the top
2. `os.path` functions are shown before `os` functions
3. Similar functionality is kept together
4. Functionality follows docs order where possible

Add a few missed correspondences:

- `os.path.isjunction` and `Path.is_junction`
- `os.path.ismount` and `Path.is_mount`
- `os.lstat()` and `Path.lstat()`
- `os.lchmod()` and `Path.lchmod()`

Also add footnotes describing a few differences.

(cherry picked from commit cbac8a3888411587beb026e246889154fbdd49a3)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Doc/library/pathlib.rst