[issue41964] difflib SequenceMatcher get_matching_blocks returns non-matching blocks in some cases

Snidhi Sofpro report at bugs.python.org
Mon Oct 12 03:33:16 EDT 2020


Snidhi Sofpro <Snidhi.Sofpro at gmail.com> added the comment:

Hello Tim Peters,

Like you pointed out:
(1) The test code clearly has a mistake.  
(2) With the mistake corrected, difflib.SequenceMatcher.get_matching_blocks() returns results as expected for the given test data.

I'm unable to readily recreate the issue where it was first observed because the application code from which the test code was derived has meanwhile gotten changed to make use of get_opcodes().

Will update this ticket if I find this to be an issue at all.

Thank you for looking into this so quickly & for the feedback.  
Contributors like you make working in the python ecosystem a professional pleasure.
Thanks again.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41964>
_______________________________________


More information about the Python-bugs-list mailing list