[Tutor] Newbie: Help on comparing files

Isr Gish isrgish at fusemail.com
Wed Jan 7 21:40:35 EST 2004


   >From: "Gerrit Holl"<gerrit at nl.linux.org>
   >Sent: 1/7/04 3:02:27 PM
   >To: "Isr Gish"<isrgish at fusemail.com>
   >Cc: "tutor at python.org"<tutor at python.org>
   >Subject: Re: [Tutor] Newbie: Help on comparing files
   >
   >Isr Gish wrote:
   >> I looking to write a function to compare 2 files.  
   >
   >You are looking for difflib:
   >http://www.python.org/doc/current/lib/module-difflib.html
   >
   >Examples:
   >http://www.python.org/doc/current/lib/differ-examples.html
Thanks for the reply.

What I need it to have an output to a file with exact differences what was in first file not in second, in second file not in first.
It doesn't seem to me that difflib does that, but I may be mistaken please correct me if I am.




More information about the Tutor mailing list