[issue6509] re.py - encounter unexpected str-object

2010-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r78729 (py3k) and r78730 (release31-maint). I also added a test for callbacks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue6509] re.py - encounter unexpected str-object

2010-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: The patch looks OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6509] re.py - encounter unexpected str-object

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch nosy: +effbot stage: -> patch review Added file: http://bugs.python.org/file15263/parse_template.patch ___ Python tracker

[issue6509] re.py - encounter unexpected str-object

2009-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6509] re.py - encounter unexpected str-object

2009-07-18 Thread Georg Brandl
Changes by Georg Brandl : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6509] re.py - encounter unexpected str-object

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue6509] re.py - encounter unexpected str-object

2009-07-17 Thread kai zhu
kai zhu added the comment: traced culprit to sre_parse.py (where literal is always str): ... def parse_template(source, pattern): # parse 're' replacement string into list of literals and # group references s = Tokenizer(source) sget = s.get p = [] a = p.append def

[issue6509] re.py - encounter unexpected str-object

2009-07-17 Thread kai zhu
Changes by kai zhu : -- components: +Regular Expressions ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6509] re.py - encounter unexpected str-object

2009-07-17 Thread kai zhu
New submission from kai zhu : >>> import re >>> compiled = re.compile(b"a(\w)") >>> s = b"aa" >>> s = compiled.sub(b"a\\1", s) Traceback (most recent call last): File "", line 1, in File ".../lib/python3.1/re.py", line 303, in filter return sre_parse.expand_template(template, match) Fi