<p dir="ltr"><br>
On 25 Nov 2013 09:14, "Ben Hoyt" <<a href="mailto:benhoyt@gmail.com">benhoyt@gmail.com</a>> wrote:<br>
><br>
> >> 4) Is path_obj.glob() recursive? In the PEP it looks like it is if the<br>
> >> pattern starts with '**',<br>
> ><br>
> ><br>
> > I don't think it has to *start* with **. Rather, the ** is<br>
> > a pattern that can span directory separators. It's not a<br>
> > flag that applies to the whole thing -- a pattern could have<br>
> > a * in one place and a ** in another.<br>
><br>
> Oh okay, that makes more sense. It definitely needs more thorough<br>
> documentation in that case. I would still prefer the simpler and more<br>
> explicit rglob() / recursive=True rather than pattern new syntax, but<br>
> I don't feel as strongly anymore.</p>
<p dir="ltr">Using "**" for directory spanning globs is also another case of us borrowing a reasonably common idiom from *nix systems that may not be familiar to Windows users.</p>
<p dir="ltr">Cheers,<br>
Nick.<br></p>
<p dir="ltr">><br>
> -Ben<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>