Terry J. Reedy <tjre...@udel.edu> added the comment:

We can assume that "substring 'CA'" was meant to be "substring 'AC'", but as 
explained, missing 'AC' is not a bug.  (Tim wrote the module.)

I read the doc, and 'non-overlapping' is implied in the SequenceMatcher entry 
at the top of the file.

"The idea is to find the longest contiguous matching subsequence that contains 
no “junk” elements; ... The same idea is then applied recursively to the pieces 
of the sequences to the left and to the right of the matching subsequence."

However, a user of SequenceMatcher could easily miss that, and its implication, 
as Springem did.  For clarity, I think we should add 'non-overlapping to the 
first line of the .get_matching_blocks entry, which is in the middle of the 
page. "Return list of triples describing non-overlapping matching subsequences."

I also think "i+n != i' or j+n != j'" should be changed to "i+n < i' or j+n < 
j'" as '>' would mean overlapping.  So != must mean <.

I will prepare a doc PR later.

----------
assignee:  -> terry.reedy
components: +Documentation
stage:  -> needs patch
versions: +Python 3.8 -Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35079>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to