gh-148765: Fix description of include_hidden parameter in glob docs#148768
Conversation
61d30bc to
6182c5d
Compare
This comment was marked as low quality.
This comment was marked as low quality.
Documentation build overview
254 files changed ·
|
This comment was marked as spam.
This comment was marked as spam.
|
There are conflicts now. |
…en-docs # Conflicts: # Lib/glob.py
Co-authored-by: Stan Ulbrych <stan@python.org>
… fix/glob-include-hidden-docs
StanFromIreland
left a comment
There was a problem hiding this comment.
LGTM, please just tidy up the blurb.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as abuse.
This comment was marked as abuse.
|
@StanFromIreland Thanks for all of your help! Good to merge? :) |
|
Thanks @EoinTrial for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @EoinTrial for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @EoinTrial for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-153172 is a backport of this pull request to the 3.13 branch. |
|
GH-153173 is a backport of this pull request to the 3.15 branch. |
|
GH-153174 is a backport of this pull request to the 3.14 branch. |
|
Merged, thanks. |
The
include_hiddenparameter inglob.glob()andglob.iglob()is described as:This is inaccurate because the flag affects all wildcard patterns, not just
**, and "hidden directories" wrongly implies WindowsFILE_ATTRIBUTE_HIDDENrather than dot-prefixed names.The fix aligns the wording with
glob.translate(), which already uses the correct description in the same file.Discourse thread from 2022 where this was identified: https://discuss.python.org/t/new-glob-documentation-could-be-improved/19054
📚 Documentation preview 📚: https://cpython-previews--148768.org.readthedocs.build/