Bring value from walk()

Moshe Zadka moshez at math.huji.ac.il
Fri Feb 25 08:29:53 EST 2000


On Fri, 25 Feb 2000, Gordon McMillan wrote:

> If you're going to print details, os.path.walk is not really
> appropriate, because it's a pre-order walk. If you're going to
> print totals for the branches, you need a post-order walk,
> (process the leaves first, then the parent node).

Did I hear anyone say "generator"?

another-stackless-thread-is-born-ly y'rs, Z.
--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list