New submission from Simmo Saan: Regex functions on bytes consider zero byte as end and stop matching at that point. This is completely nonsensical since python has no problems working with zero bytes otherwise.
For example: Matches as expected: re.match(b'a', b'abc') Does not match unexpectedly: re.match(b'a', b'\x00abc') ---------- components: Regular Expressions messages: 264561 nosy: Simmo Saan, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: regex matching on bytes considers zero byte as end type: behavior versions: Python 3.5 _______________________________________ 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