[issue43473] Junks in difflib

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Currently return tuple (i, j, n), means that a[i:i+n] == b[j:j+n], where both matching blocks are the same length. https://docs.python.org/3/library/difflib.html#difflib.SequenceMatcher.get_matching_blocks This would not be the case if a has an ignored space

[issue43473] Junks in difflib

2021-03-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43473] Junks in difflib

2021-03-11 Thread Hubert Bonnisseur-De-La-Bathe
New submission from Hubert Bonnisseur-De-La-Bathe : Reading first at the documentation of difflib, I thought that the use of junks would have produced the result s = SequenceMatcher(lambda x : x == " ", "abcd efgh", "abcdefgh") s.get_matching_blocks() >>> [Match(a=0, b=0, size=8)] At a