[Tutor] Pythonese/Efficiency/Generalese critique please

Javier Ruere javier at ruere.com.ar
Sun Jun 5 03:32:46 CEST 2005

Lee Cullens wrote:
> The initial os.walk() approach I tried is simple in concept:
> pgo = os.walk(base_directory)
> for xnode in pgo:
>    <process node>
> but I ended up with much more processing in having to sort the rows  
> and then blank repeated cells, than the recursive listdir approach  
> which gave me the desired ordering in one pass.

   You have certainly analysed this issue far more than me so you know 
better but I just can't see the extra processing. I guess I should just 
give it a try. :)


More information about the Tutor mailing list