On Jul 23, 1:27 am, Clay Hobbs <[EMAIL PROTECTED]> wrote: > I am making a program that (with urllib) that downloads two jpeg files > and, if they are different, displays the new one. I need to find a way > to compare two files in Python. How is this done? > > -- Ratfink
import hashlib file = open(path) m = hashlib.md5() m.update(file.read()) digest = m.hexdigest() file.close() and compare the digest on both files -- http://mail.python.org/mailman/listinfo/python-list