GH-119054: Add "Reading directories" section to pathlib docs#119956
GH-119054: Add "Reading directories" section to pathlib docs#119956barneygale merged 3 commits intopython:mainfrom
Conversation
Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`.
|
Not sure about "Listing directories" as a title. I considered "Iterating over directories" but it's maybe a touch technical. "Reading directories" is OK. Suggestions? |
JelleZijlstra
left a comment
There was a problem hiding this comment.
I asked my wife for advice since I'm too deep into core development to know what an intuitive name is. Here's some suggestions we came up with:
- Reading through directories
- Enumerating directories
- Listing the contents of directories
- Iterating over directories
I think I might like "Reading directories" best; it's short and doesn't use an overly technical term.
I also left a few comments on the documentation that you moved. I know they're just being moved around, so feel free to ignore those comments or defer them for a future PR.
Co-authored-by: Jelle Zijlstra <[email protected]>
|
Thanks v much Jelle (edit: and thanks also to your wife!) |
|
Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
|
Sorry, @barneygale, I could not cleanly backport this to |
|
Sorry, @barneygale, I could not cleanly backport this to |
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit 14e1506)
…docs (pythonGH-119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <[email protected]>
…docs (pythonGH-119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <[email protected]>
|
GH-120183 is a backport of this pull request to the 3.13 branch. |
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit 14e1506)
…docs (pythonGH-119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <[email protected]>
|
GH-120184 is a backport of this pull request to the 3.12 branch. |
…H-119956) (#120183) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. (cherry picked from commit 14e1506) Co-authored-by: Jelle Zijlstra <[email protected]>
…H-119956) (#120184) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. (cherry picked from commit 14e1506) Co-authored-by: Jelle Zijlstra <[email protected]>
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]>
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <[email protected]>
Add a dedicated subsection for
Path.iterdir()-related methods, specificallyiterdir(),glob(),rglob()andwalk().📚 Documentation preview 📚: https://cpython-previews--119956.org.readthedocs.build/