-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-119054: Add "Reading directories" section to pathlib docs #119956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <jelle.zijlstra@gmail.com>
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 <jelle.zijlstra@gmail.com> (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 <jelle.zijlstra@gmail.com>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <barney.gale@gmail.com>
…docs (pythonGH-119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <barney.gale@gmail.com>
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 <jelle.zijlstra@gmail.com> (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 <jelle.zijlstra@gmail.com>. (cherry picked from commit 14e1506) Co-authored-by: Barney Gale <barney.gale@gmail.com>
GH-120184 is a backport of this pull request to the 3.12 branch. |
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…ython#119956) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Add a dedicated subsection for
Path.iterdir()
-related methods, specificallyiterdir()
,glob()
,rglob()
andwalk()
.📚 Documentation preview 📚: https://cpython-previews--119956.org.readthedocs.build/