[New-bugs-announce] [issue26895] regex matching on bytes considers zero byte as end
Simmo Saan
report at bugs.python.org
Sat Apr 30 11:02:11 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue26895>
_______________________________________
More information about the New-bugs-announce
mailing list