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

2020-10-12 Thread Snidhi Sofpro
Snidhi Sofpro 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 wher

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

2020-10-07 Thread Tim Peters
Tim Peters added the comment: I believe your testing code is in error, perhaps because it's so overly elaborate you've lost track of what it's doing. Here's a straightforward test program: import difflib s1='http://local:56067/register/200930162135700";>' s2='http://local:53813/

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

2020-10-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2020-10-07 Thread Snidhi Sofpro
New submission from Snidhi Sofpro : -- Demo case with unexpected results starting from matching block 3 (result of code that follows): sys.version_info(major=3, minor=6, micro=9, releaselevel='final', serial=0) Matches between: http://local:56067/register/200930162135700";> http://lo