Lines Matching defs:compare
107 uses SequenceMatcher both to compare sequences of lines, and to compare
241 second sequence, so if you want to compare one sequence S against
267 second sequence, so if you want to compare one sequence S against
501 # block so lengthened remains the block to compare against.
506 # new block to compare against.
755 SequenceMatcher both to compare sequences of lines, and to compare
803 Finally, we compare the two:
805 >>> result = list(d.compare(text1, text2))
841 compare(a, b)
842 Compare two sequences of lines; generate the resulting delta.
868 def compare(self, a, b):
870 Compare two sequences of lines; generate the resulting delta.
880 >>> print(''.join(Differ().compare('one\ntwo\nthree\n'.splitlines(True),
1139 Compare two sequences of lines; generate the delta as a unified diff.
1224 Compare two sequences of lines; generate the delta as a context diff.
1305 raise TypeError('lines to compare must be str, not %s (%r)' %
1308 raise TypeError('lines to compare must be str, not %s (%r)' %
1317 Compare `a` and `b`, two sequences of lines represented as bytes rather
1321 back to bytes on return. This is necessary to compare files with
1346 Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
1379 return Differ(linejunk, charjunk).compare(a, b)
2060 Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract