You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
glob.glob() docs incorrectly describe include_hidden as only affecting ** pattern #148765
The documentation for glob.glob() and glob.iglob() describes the include_hidden parameter as:
If include_hidden is true, "**" pattern will match hidden directories.
This is inaccurate in two ways:
The flag affects all wildcard patterns (*, ?, [...], **), not just **.
For example, glob.glob('*',include_hidden=True) matches dotfiles in the current directory.
"hidden directories" is misleading, since it refers to any path component whose name begins with a dot, not Windows FILE_ATTRIBUTE_HIDDEN.
Activity
pythongh-148765: Fix description of include_hidden parameter in glob …
pythongh-148765: Fix description of include_hidden parameter in glob …
gh-148765: Fix description of *include_hidden* parameter in `glob.glo…
[3.14] gh-148765: Fix description of *include_hidden* parameter in `g…
[3.13] gh-148765: Fix description of *include_hidden* parameter in `g…
[3.15] gh-148765: Fix description of *include_hidden* parameter in `g…