[issue2986] difflib.SequenceMatcher not matching long sequences

Eli Bendersky report at bugs.python.org
Fri Sep 3 06:46:08 CEST 2010


Eli Bendersky <eliben at gmail.com> added the comment:

Attaching a patch (developed jointly with Terry Reedy) for 2.7 that adds an 'autojunk' parameter to SequenceMatcher's constructor. The parameter is True by default which retains the current behavior in 2.6 and earlier, but can be set by the user to False to disable the popularity heuristic. The patch also fixes some documentation inconsistencies that Terry raised in this message.

Notes:
1. Tests run successfully. Added new test class in test_difflib for testing with the new autojunk parameter False
2. Patch generated vs. Hg mirror

----------
Added file: http://bugs.python.org/file18719/issue2986.fix27.4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2986>
_______________________________________


More information about the Python-bugs-list mailing list