Diff of Text

Patrick Maupin pmaupin at gmail.com
Fri Jun 4 15:55:01 EDT 2010


On Jun 3, 9:54 pm, GZ <zyzhu2... at gmail.com> wrote:
> Hi All,
>
> I am looking for an algorithm that can compare to source code files
> line by line and find the minimum diff. I have looked at the difflib
> included in python. The problem is that it is designed to make the
> diff results easier for humans to read, instead of minimize the size
> of the output differencial. I would like an algorithm implementation
> that gives the absolute minimum difference between the two files.
>
> Can you help me?
>
> Thanks,
> gz

There's an "rsync.py" module in pypi -- one would think that would
have to solve that same problem...

Regards,
Pat




More information about the Python-list mailing list