PyMOTW: difflib

by Doug Hellmann

The difflib module contains several classes for comparing sequences, especially of lines of text from files, and manipulating the results.