This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients
Date 2018-11-21.07:57:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id
In-reply-to
Content
The "expected result" listed isn't a valid output for get_matching_blocks() which is documented to return "triples are monotonically increasing in i and j".    In your example, the "a" sequence is increasing: 0, 2, 5 but the "b" sequence is not monotonic: 3 0 5.

SequenceMatcher.get_matching_blocks() isn't designed to locate swapped blocks from "abcd" to "cdab".
History
Date User Action Args
2018-11-21 07:57:21rhettingerlinkissue35286 messages
2018-11-21 07:57:21rhettingercreate