Serhiy Storchaka added the comment: @Brett: Yes, the patch handles `42 == b'*'` as well.
@Victor: The problem in such code: x = b'Array' x[0] == b'A' Added explicit tests for bytes on the right side of the comparison and replaced b'.'[0] to ord(b'.'). ---------- Added file: http://bugs.python.org/file38591/bytes_to_int_compare_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23681> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com