[Tutor] Pythonese/Efficiency/Generalese critique please

Lee Cullens leec03273 at mac.com
Sun Jun 5 03:48:40 CEST 2005

On Jun 4, 2005, at 9:32 PM, Javier Ruere wrote:

> 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. :)

Or that I just was not smart enough to pull it into one pass :~)  If  
this were a serious project I would look into the csv module Kent  
mentioned and possibly combine the two for a much more succinct module.

> Javier
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list