Looking for File comparison utility that produces actual differences

Wojtek Walczak gminick at bzt.bzt
Wed Sep 3 14:54:59 EDT 2008


On Wed, 3 Sep 2008 19:40:40 +0100, dudeja.rajat at gmail.com wrote:

> I looking for a file comparison utility in Python that works like
> 'diff' command in Unix and 'comp' in Windows.
> The present 'cmd'  in filecmp module only presents output in the form
> of 1 or 0 i.e whether the 2 files differ or not?

In python it's called difflib. Try to import it.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list