---------------------------------------- > From: oscar.j.benja...@gmail.com [...] > > Do you find this code easy to read? I wouldn't write something like > this and I certainly wouldn't use it when explaining something to a > beginner. > > Rather than repeated list comprehensions you should consider using a > single loop e.g.: > > for filename in filenames: > # process each file > > This will make the code a lot simpler. > > > Oscar
Indeed, but for that you can use Pascal. List comprehensions it's what Python does best! The code is pretty obvious to me, I mean there's no obfuscation at all. -- http://mail.python.org/mailman/listinfo/python-list