Guido van Rossum added the comment:

If you have that use case you're probably better of using os.walk() so you are 
not limited to a prune strategy that can be expressed using a single glob 
pattern (e.g. maybe I want to ignore .git, .hg and __pycache__ but descend into 
everything else).

I think we would also welcome adding a walk() method to pathlib. But let's 
please leave glob() alone.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26096>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to