[Tutor] Newbie: Help on comparing files

Gerrit Holl gerrit at nl.linux.org
Wed Jan 7 15:02:27 EST 2004


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

yours,
Gerrit.

-- 
132. If the "finger is pointed" at a man's wife about another man, but
she is not caught sleeping with the other man, she shall jump into the
river for her husband.
          -- 1780 BC, Hammurabi, Code of Law
-- 
PrePEP: Builtin path type
    http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/



More information about the Tutor mailing list