[Tutor] Comparison Textboxes
Steven D'Aprano
steve at pearwood.info
Tue Aug 27 07:33:12 CEST 2013
Hi Taserian,
On Mon, Aug 26, 2013 at 05:26:37PM -0400, taserian wrote:
> I'm attempting to gather the pieces I need for a simple project I'd like to
> do for my job, but I'm having a difficult time finding something, and I'm
> appealing to the hive mind at Tutor for wisdom.
Just for the record, "hive mind" is not a compliment, it is an insult.
Rather than suggest "the wisdom of the crowd", it suggests a group of
people indoctrinated into all believing exactly the same thing.
> My project needs to compare two or more large textboxes (each one
> containing a file or a large amount of text) and point out their
> differences, establishing one textbox as the canonical one to which the
> other textboxes are compared.
You want the difflib module:
http://docs.python.org/2/library/difflib.html
--
Steven
More information about the Tutor
mailing list