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

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