[Python-Dev] os.path.walk() lacks 'depth first' option

Guido van Rossum guido@python.org
Mon, 21 Apr 2003 08:04:38 -0400


> Guido van Rossum wrote:
> > But if I had to do it over again, I wouldn't have added walk() in the
> > current form.
> 
> I think it's the perfect place for a generator.

Absolutely!  So let's try to write something new based on generators,
make it flexible enough so that it can handle pre-order or post-order
visits, and then phase out os.walk().

--Guido van Rossum (home page: http://www.python.org/~guido/)