[Tutor] Pythonese/Efficiency/Generalese critique please
leec03273 at mac.com
Sun Jun 5 00:01:19 CEST 2005
Thank you for the critique Javier.
You made some good points that I will play with before moving on.
Beyond that, I intentionally neglected error checking in this
exercise as you may have surmised. Checking input arguments and
handling access restrictions gracefully would indeed be important
The initial os.walk() approach I tried is simple in concept:
pgo = os.walk(base_directory)
for xnode in pgo:
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.
More information about the Tutor