[New-bugs-announce] [issue2860] re module fails to handle digits in byte strings

Stefan Behnel report at bugs.python.org
Thu May 15 10:08:23 CEST 2008


New submission from Stefan Behnel <scoder at users.sourceforge.net>:

The following fails in Py3.0a5:

    >>> import re
    >>> re.search(b'(\d+)', b'-2.80 98\n')

I get a TypeError: "Can't convert 'int' object to str implicitly" in
line 204 of file "sre_parse.py", code being "char = char + c".

----------
components: Library (Lib)
messages: 66848
nosy: scoder
severity: normal
status: open
title: re module fails to handle digits in byte strings
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2860>
__________________________________


More information about the New-bugs-announce mailing list