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 hubertbdlb
Recipients docs@python, hubertbdlb
Date 2021-03-11.09:37:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615455471.04.0.613792585483.issue43473@roundup.psfhosted.org>
In-reply-to
Content
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 second lecture, it is clear that such evaluation will return in fact two matches of length 4.

Would it be nicer to have get_matching_block return the length 8 match ? 

Don't know if it's in the spirit of the lib, I'm just asking.
History
Date User Action Args
2021-03-11 09:37:51hubertbdlbsetrecipients: + hubertbdlb, docs@python
2021-03-11 09:37:51hubertbdlbsetmessageid: <1615455471.04.0.613792585483.issue43473@roundup.psfhosted.org>
2021-03-11 09:37:51hubertbdlblinkissue43473 messages
2021-03-11 09:37:50hubertbdlbcreate