[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Lewis Haley
Changes by Lewis Haley : -- title: difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings -> difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings ___ Pyt

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings

2015-10-13 Thread Lewis Haley
New submission from Lewis Haley: Consider the following snippet: import difflib first = u'location,location,location' for second in ( u'location.location.location', # two periods (no commas) u'location.location,location', # period after first