[issue2860] re module fails to handle digits in byte strings

2008-05-15 Thread Stefan Behnel
New submission from Stefan Behnel [EMAIL PROTECTED]: 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:

[issue2860] re module fails to handle digits in byte strings

2008-05-15 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I think it's debatable whether re should byte strings since it is searching through text and not raw binary data. However, this may be a case of practicality over purity. -- nosy: +benjamin.peterson