How to compare files

bruno modulix onurb at xiludom.gro
Mon Jul 4 05:55:18 EDT 2005


Lad wrote:
> Hi,
> What is the best method for comparing two files by words?

try the difflib module:
http://www.python.org/doc/2.4.1/lib/module-difflib.html


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list