-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
glob module docs in wrong order #110417
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
Labels
docs
Documentation in the Doc dir
Comments
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Oct 5, 2023
Move examples of `glob()` usage into the `.. function:: glob()` block, and move the mention of `fnmatch` to just before the mention of `pathlib`. As a result, the description and examples of `glob()` are not interrupted by descriptions of `iglob()` and `escape()`.
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Nov 13, 2023
barneygale
added a commit
that referenced
this issue
Nov 13, 2023
Fix incorrect placement of `translate()` docs from cf67ebf. Move "see also: pathlib" admonition to the bottom of the page, alongside one for fnmatch. This helps the module introduction flow more naturally into the function descriptions. Add an "Examples" subheading just before the examples. This makes it more obvious that examples aren't specifically related to the preceding documentation of `escape()` and `translate()`.
Why not backport? Conflicts from changes? |
Conflicts, and the changes in 3.12 and prior seem to minor to be worth it I think. I can backport if you think it's worthwhile? |
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
Fix incorrect placement of `translate()` docs from cf67ebf. Move "see also: pathlib" admonition to the bottom of the page, alongside one for fnmatch. This helps the module introduction flow more naturally into the function descriptions. Add an "Examples" subheading just before the examples. This makes it more obvious that examples aren't specifically related to the preceding documentation of `escape()` and `translate()`.
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Fix incorrect placement of `translate()` docs from cf67ebf. Move "see also: pathlib" admonition to the bottom of the page, alongside one for fnmatch. This helps the module introduction flow more naturally into the function descriptions. Add an "Examples" subheading just before the examples. This makes it more obvious that examples aren't specifically related to the preceding documentation of `escape()` and `translate()`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation of the
glob
module is in a slightly odd order:a.
glob()
b.
iglob()
c.
escape()
glob()
In particular, the description of
glob()
and the examples of its usage are interrupted by descriptions ofiglob()
andescape()
.I think this might be better:
a.
glob()
, including two examples of its usageb.
iglob()
c.
escape()
Linked PRs
glob
docs ordering #110418The text was updated successfully, but these errors were encountered: