[Python-ideas] BetterWalk, a better and faster os.walk() for Python

Mike Meyer mwm at mired.org
Sun Nov 25 01:56:14 CET 2012

On Sat, Nov 24, 2012 at 5:27 PM, Andrew Barnert <abarnert at yahoo.com> wrote:
> (In fact, I think an os.walk replacement based on the fts API, which
> never uses iterdir_stat, would be the best answer, but let me put
> more thought into that idea...)

A couple of us have looked into this, and there's an impedance
mismatch between the os.walk API and the fts API, in that fts doesn't
provide the d_type information, so you're forced to make the stat
calls that this rewrite was trying to avoid.

If you're thinking about providing an API that looks more like fts,
that might be a better answer - if you design it so it also works on


More information about the Python-ideas mailing list