Re: unexpected output from difflib.SequenceMatcher

2010-04-19 Thread Vlastimil Brom
From: Vlastimil Brom Date: 2010/4/16 Subject: unexpected output from difflib.SequenceMatcher ... Instead of just reporting the insertion and deletion of these single characters ... the output of the SequenceMatcher decides to delete a large part of the string in between the differences and to

unexpected output from difflib.SequenceMatcher

2010-04-16 Thread Vlastimil Brom
Hi all, Once in a while I happen to stumble on some not expected behaviour of difflib.SequenceMatcher, in this case I hopefully managed to replicate it on an illustrative sample text. Both strings differ in a minimal way, each having one extra character in a "strategic" position, which seems to mee