[issue13968] Add a recursive function to the glob package
Éric Araujo
report at bugs.python.org
Wed Feb 8 17:01:25 CET 2012
Éric Araujo <merwok at netwok.org> added the comment:
Feedback from Antoine on IRC about my syntax proposal: “The "**" meaning is not really universal like other quantifiers are. [...] (also, it would be quite harder to implement, I think)”
That and the compat issue makes me go in favor of a new function.
I’m not sure glob is the right place: when you use glob.glob, the search is rooted in the current directory, and you may have sub-directories in your pattern, e.g. 'Lib/*/__main__.py'. A function meaning “look for this file pattern recursively” would be IMO more at home in fnmatch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13968>
_______________________________________
More information about the Python-bugs-list
mailing list