[Python-ideas] Adding '**' recursive search to glob.glob
Antoine Pitrou
solipsis at pitrou.net
Mon Jan 14 18:06:34 CET 2013
Le Mon, 14 Jan 2013 18:21:40 +0200,
Serhiy Storchaka <storchaka at gmail.com> a
écrit :
> On 14.01.13 17:46, Vinay Sajip wrote:
> > Isn't the requirement to recurse implied by the presence of '**' in
> > the pattern? What's to be gained by specifying it using
> > allow_recursive as well?
>
> I'll be glad to make it enabled by default, however I'm feeling this
> is too dangerous. glob('**') on FS root takes too long time. Perhaps
> that's why (and for backward compatibility) this option (called
> "starglob") is disabled by default in Bash.
But there's no reason to write glob('**') with the current API.
Regards
Antoine.
More information about the Python-ideas
mailing list