Questions tagged [difflib]

A python module, provides tools for computing and working with differences between sequences, especially useful for comparing text. Includes functions that produce reports using several common difference formats.

A python module which provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce difference information in various formats, including HTML and context and unified diffs.

271 questions
-3
votes
1 answer

Calculating string difference in python

I am trying to calculate the number of characters that differ between two strings in python. Ideally I want a function just like strdif in C. I see ndiff in python's difflib, but that returns a Differ object whereas I want a simple integer (ex:…
1 2 3
18
19