dirwalk.py generator version of os.path.walk
Greg Ewing
greg at cosc.canterbury.ac.nz
Sun Mar 3 18:41:05 EST 2002
Tim Peters wrote:
>
> If I were Jim, I'd continue leaving recursion out of this specific
> application. An explicit "todo list" trivially supports either
> breadth-first or depth-first traversal (a choice Jim explicitly mentioned as
> something he wants to control).
That's fine. I was just trying to make sure that Jim
didn't reject recursion for the wrong reasons. His
comment about lack of tail-recursion supported
suggested a possibly hazy understanding of the
issues, so I tried to indulge in a little fog-dispersal.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list