Serhiy Storchaka added the comment: There is no bug.
The pattern b'a' matches bytes that starts with byte 97 (ord(b'a')), but b'\x00abc' starts with byte 0. ---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26895> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com