Skip to content

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Jun 29, 2024

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 d6d8707)


📚 Documentation preview 📚: https://cpython-previews--121156.org.readthedocs.build/

…o pathlib docs. (pythonGH-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 d6d8707)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news topic-pathlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant