Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
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". ---------- status: -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35286> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com