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 <1247876846.09.0.430669746251.issue6509@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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/re.py", line 303, in filter
    return sre_parse.expand_template(template, match)
  File ".../lib/python3.1/sre_parse.py", line 810, in expand_template
    return sep.join(literals)
TypeError: sequence item 0: expected bytes, str found
History
Date User Action Args
2009-07-18 00:27:26kaizhusetrecipients: + kaizhu
2009-07-18 00:27:26kaizhusetmessageid: <1247876846.09.0.430669746251.issue6509@psf.upfronthosting.co.za>
2009-07-18 00:27:24kaizhulinkissue6509 messages
2009-07-18 00:27:23kaizhucreate