STINNER Victor <victor.stin...@haypocalc.com> added the comment: bytes_find.patch only works for Python int, not object with the __index__ method. My new patch (bytes_find-2.patch) uses PyNumber_Check() instead of PyLong_Check() to be more generic. It fixes also a different issue: raise the same ValueError than bytes.find(-1) on overflow error.
---------- Added file: http://bugs.python.org/file24012/bytes_find-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13623> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com