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 <m...@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-le...@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/QVZJAHFOHTNKNE72X7RGICBEROMSCG5R/
> 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-change-the-world/>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@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/XPBIP5OYRB3LLJI36VNKVP6AFN4CFQ5Q/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to