I think it's wrong in the docs. From looking at the code, that flag applies to all patterns, not just to `**`. (and "hidden" just means "begins with a dot") On Mon, Sep 12, 2022 at 9:04 AM Mats Wichmann <mats@wichmann.us> wrote:
Just spotted that 3.11 adds an include_hidden. At the moment a little confused because there's an apparent mismatch between docstring and docs.
Lib/glob.py:
If `include_hidden` is true, the patterns '*', '?', '**' will match hidden directories.
Doc/library/glob.rst:
If *include_hidden* is true, "``**``" pattern will match hidden directories.
,,, with no mention of the other patterns.
Is that just an omission in the rst doc?
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/QVZJAHFO... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>