[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> difflib SequenceMatcher ratio() still have unpredictable behavior ___ Python tracker ___

[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-07 Thread Tim Peters
Tim Peters added the comment: Try passing autojunk=False to the SequenceMatcher constructor. More on that here: https://bugs.python.org/issue31889 -- nosy: +tim.peters ___ Python tracker

[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-07 Thread Daniel Pezoa
New submission from Daniel Pezoa : I am using the SequenceMatcher object of the difflib library and I have noticed that a drastic failure occurs when the text strings exceed 200 characters Source code: = from difflib import S