Library Generate a diff between two text files

Göktuğ Kayaalp self at gkayaalp.com
Fri Nov 29 06:29:45 EST 2019


On 2019-11-25 16:31 +03, Noah <noah at neo.co.tz> wrote:
>>From experience, could someone point me to a library that can do a diff
> between two separate text files...
>
> *difflib* doesn't seem to cut it to this end....

Kinda simplistic idea, but would shelling out to diff(1) work for you?
GNU diff is probably one of the most sophisticated tools for generating
diffs out there, if not the one, given the sheer amount of usage and
care it’s subject to.

Cheers,
        -gk.


More information about the Python-list mailing list