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@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor