This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kaizhu
Recipients kaizhu
Date 2009-07-18.00:27:23
SpamBayes Score 4.7359555e-07
Marked as misclassified No
Message-id <>
>>> import re
>>> compiled = re.compile(b"a(\w)")
>>> s = b"aa"
>>> s = compiled.sub(b"a\\1", s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../lib/python3.1/", line 303, in filter
    return sre_parse.expand_template(template, match)
  File ".../lib/python3.1/", line 810, in expand_template
    return sep.join(literals)
TypeError: sequence item 0: expected bytes, str found
Date User Action Args
2009-07-18 00:27:26kaizhusetrecipients: + kaizhu
2009-07-18 00:27:26kaizhusetmessageid: <>
2009-07-18 00:27:24kaizhulinkissue6509 messages
2009-07-18 00:27:23kaizhucreate