Difflib question

Tim Peters tim.one at comcast.net
Mon Sep 16 18:29:32 EDT 2002


[Robin Siebler]
> Is there a way to get difflib to output *only* the lines that are
> different (instead of all of the lines)?

Read the docs for Sequence_Matcher.get_opcodes(), and ignore 'equal' tuples.




More information about the Python-list mailing list