diff module

SBrunning at trisystems.co.uk SBrunning at trisystems.co.uk
Wed Feb 4 05:53:59 EST 2004


> From: Guyon Morée [mailto:gumuz at looze.net]
> does anybody know of a python module which allows me to 
> compare two pieces
> of 'text' and get the results in a 'diff' way, so I can build 
> a nice gui
> around it?

The standard library includes a 'difflib' module, which should do what you
want. It's newish, though: if you don't have it, it's probably because you
are running an old version of Python.

Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/
--LongSig




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list