Eli Bendersky <eli...@gmail.com> added the comment:

"file_paths(filtered_walk('.', included_files=['*.py']))" is a lot longer than 
"rglob('*.py')".


It is, but is that a good enough reason to have both? It can also be achieved 
with just a bit more code using the simple `os.walk`. I suppose there are a lot 
of instances of stdlib tools where we could add new tools that would make the 
code slightly shorter. However, this is not really faithful to the Python 
spirit, since it adds too many ways to do achieve the same effect, and 
ultimately confuses users.

That it adds additional maintenance burden on the coredevs goes without saying 
:-) Each such new burden should have a very good reason.

To conclude, personally I'm -1 on this, especially if `walkdir` eventually 
makes it into the stdlib.

----------
nosy: +eli.bendersky

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

Reply via email to