On 9/12/22 19:48, Eryk Sun wrote:
On 9/12/22, Mats Wichmann wrote:
If `include_hidden` is true, the patterns '*', '?', '**' will
match hidden directories.
Shouldn't this explain what a "hidden directory" is? For example, a
Windows user may think this means a directory with
On 9/12/22, Mats Wichmann wrote:
>
> If `include_hidden` is true, the patterns '*', '?', '**' will
> match hidden directories.
Shouldn't this explain what a "hidden directory" is? For example, a
Windows user may think this means a directory with
FILE_ATTRIBUTE_HIDDEN set, but that's not what's
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 wrote:
>
> Just spotted that 3.11 adds an include_hidden. At the moment a little
> confused
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
Python 3.11 is one month away, can you believe it? This snake is still
trying to bite as it has been an interesting day of fighting fires, release
blockers, and a bunch of late bugs but your friendly release team always
delivers :)
You can get this new release while is still fresh here: