[Tutor] How to use diff.py?

Kent Johnson kent37 at tds.net
Sat Jan 27 13:54:29 CET 2007

Dick Moores wrote:
> At 12:16 PM 1/26/2007, you wrote:
>> I've found diff.py in Python25\Tools\Scripts. But I don't see how to 
>> use it to find the differences between 2 files, say file1.txt and 
>> file2.txt. I was hoping it would work like unix's diff, but could 
>> someone explain?
> Here's one way: http://tinyurl.com/2lsleq

Did that answer your question?

You can run diff.py from the command line, e.g.
py c:/python25/tools/scripts/diff.py -c FindE3Audio.py FindE3NoAudio.py

Here is an example of using difflib:


More information about the Tutor mailing list