]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-121462: pathlib docs: improve table of corresponding os/os.path functions (#121465)
authorBarney Gale <barney.gale@gmail.com>
Sat, 27 Jul 2024 17:03:18 +0000 (18:03 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Jul 2024 17:03:18 +0000 (18:03 +0100)
commitcbac8a3888411587beb026e246889154fbdd49a3
treeafb5c065c1d5c0eff209a159f91ef16699a50ebf
parent45614ecb2bdc2b984f051c7eade39458a3f8709f
GH-121462: pathlib docs: improve table of corresponding os/os.path functions (#121465)

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.
Doc/library/pathlib.rst