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 <rep...@bugs.python.org> <http://bugs.python.org/issue24384> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com