[Python-ideas] Adding '**' recursive search to glob.glob

Ethan Furman ethan at stoneleaf.us
Tue Jan 15 18:00:30 CET 2013


On 01/14/2013 09:15 PM, Yuval Greenfield wrote:
>  >>> rglob('**.py')
>
> or
>
>  >>> glob('**.py', True)
>
> I don't mind either, though I think the first one is a bit clearer
> because "r" is more telling than "True". Don't mention glob('**.py',
> allow_recursive=True) because that's probably not going to be the norm.

If `allow_recursive` is a keyword-only parameter it will be the norm.  :)

~Ethan~




More information about the Python-ideas mailing list