[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification

floyd report at bugs.python.org
Mon Jun 8 09:18:11 CEST 2015


floyd added the comment:

Agree with the separate function (especially as the return value would change from float to bool).

In my experience this is one of the most often occuring use cases for difflib in practice.

Another reason is that it is not obvious that the user can optimize it with the appended version.

Some more opinions would be nice.

If this suggestion is rejected we could include a performance warning for this use case in the docs and/or I'll write an online code recipe which can be linked to.

----------

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


More information about the Python-bugs-list mailing list