pythonic tree-walking idioms

Charlie Clark charlie at begeistert.org
Sat May 19 16:09:36 CEST 2001


Tim Peters wrote:
> [Fredrik Lundh]
>> os.path.walk is pretty unpythonic, imo [1].
>
> Mine too, and, luckily for us <wink>, also Guido's:  last time this
> came up,
> he said he considers os.path.walk to be a youthful indiscretion.  I'm
> sure it
> will never go away, but I never steer people toward it either.
>
Thanx for the tip. I was wondering why I never understood os.path.walk
and always religiously copy, paste and change what I think is
appropriate. Tell Guido he's forgiven!!

Charlie



More information about the Python-list mailing list