Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
In difflib, there's an example where it would be easy to run performance tests. match tag: case 'replace': g = self._fancy_replace(a, alo, ahi, b, blo, bhi) case 'delete': g = self._dump('-', a, alo, ahi) case 'insert': g = self._dump('+', b, blo, bhi) case 'equal': g = self._dump(' ', a, alo, ahi) case _: raise ValueError('unknown tag %r' % (tag,)) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com