Re: Problem with difflib SequenceMatcher

2016-09-12 Thread Alain Ketterlin
Jay writes: > I am having an odd problem with difflib.SequenceMatcher. Sample code below: > > The strings "src" and "trg" differ only a little. How exactly? (Please be precise, it helps testing.) > The SequenceMatcher.ratio() for these strings 0.0. Many other similar > strings are working fine

Problem with difflib SequenceMatcher

2016-09-12 Thread Jay
Hello I am having an odd problem with difflib.SequenceMatcher. Sample code below: The strings "src" and "trg" differ only a little. The SequenceMatcher.ratio() for these strings 0.0. Many other similar strings are working fine without problems (see below) with non-zero ratios depending on how muc