diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-29 15:37:55 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 15:37:55 (GMT) |
| commit | c70f1122b4d00818c9f197931a0c8ac86505d214 (patch) | |
| tree | 904077ca068a958b6a3bcaa784c41dd140833297 /Lib/test/test_htmlparser.py | |
| parent | d96a52e1366ad5e798839a63e68a0a1b9d728f9c (diff) | |
| download | cpython-c70f1122b4d00818c9f197931a0c8ac86505d214.zip cpython-c70f1122b4d00818c9f197931a0c8ac86505d214.tar.gz cpython-c70f1122b4d00818c9f197931a0c8ac86505d214.tar.bz2 | |
[3.13] GH-119054: Add "Expanding and resolving paths" section to pathlib docs. (GH-120970) (#121155)
GH-119054: Add "Expanding and resolving paths" section to pathlib docs. (GH-120970)
Add dedicated subsection for `home()`, `expanduser()`, `cwd()`,
`absolute()`, `resolve()` and `readlink()`. The position of this section
keeps all the `Path` constructors (`Path()`, `Path.from_uri()`,
`Path.home()` and `Path.cwd()`) near the top. Within the section, closely
related methods are kept adjacent. Specifically:
- `home()` and `expanduser()` (the former calls the latter)
- `cwd()` and `absolute()` (the former calls the latter)
- `absolute()` and `resolve()` (both make paths absolute)
- `resolve()` and `readlink()` (both read symlink targets)
- Ditto `cwd()` and `absolute()`
- Ditto `absolute()` and `resolve()`
The "Other methods" section is removed.
(cherry picked from commit d6d8707ff217f211f3a2e48084cc0ddfa41efc4d)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Diffstat (limited to 'Lib/test/test_htmlparser.py')
0 files changed, 0 insertions, 0 deletions
