[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
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

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Eryk Sun
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

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Guido van Rossum
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

[Python-Dev] glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
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-Dev] [RELEASE] Python 3.11 release candidate 2 (3.11.0rc2) is available

2022-09-12 Thread Pablo Galindo Salgado
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: