How do I compare files?

Gerhard Häring gh at ghaering.de
Wed Jul 23 04:19:24 EDT 2008


Clay Hobbs 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?

There's a module in the standard library called filecmp ;-)

-- Gerhard




More information about the Python-list mailing list