Gregory P. Smith <g...@krypto.org> added the comment:
Agreed, using a dict or set hash table lookup is more appropriate for such an algorithm. Also agreed: comparing python integers (30-bit digit bignums internally) cannot be faster than comparing a binary bytes object. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42942> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com