tag:blogger.com,1999:blog-5569894.post3093623456031238801..comments2023-11-08T13:18:07.006+00:00Comments on Distributed Memory: Deleting files, keeping a few -- in PythonSteve Gilhamhttp://www.blogger.com/profile/03622573187942388226noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5569894.post-62665257577424678352012-10-13T03:11:57.861+01:002012-10-13T03:11:57.861+01:00Changing fcompare to:
fcompare = lambda x,y: cmp(...Changing fcompare to:<br /><br />fcompare = lambda x,y: cmp(os.path.getmtime(x), os.path.getmtime(y))<br /><br />makes it a two-liner...Martin Jnoreply@blogger.com