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 roysmith
Recipients ezio.melotti, mrabarnett, roysmith
Date 2013-03-03.13:56:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362318975.95.0.685473127287.issue17341@psf.upfronthosting.co.za>
In-reply-to
Content
>>> re.compile('(?P=<foo>)')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/roy/env/python/lib/python2.7/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/home/roy/env/python/lib/python2.7/re.py", line 242, in _compile
    raise error, v # invalid expression
sre_constants.error: bad character in group name


The error here is that I put a "=" where it shouldn't be.  The error message is misleading.  The "group name" is the stuff between the <>'s.  That part's fine.  What's broken is the stuff outside of the <>'s.

Unclear if it's reasonable to expect such precise error reporting here, but this one seems particularly misleading, so opening a ticket to record the observation.
History
Date User Action Args
2013-03-03 13:56:16roysmithsetrecipients: + roysmith, ezio.melotti, mrabarnett
2013-03-03 13:56:15roysmithsetmessageid: <1362318975.95.0.685473127287.issue17341@psf.upfronthosting.co.za>
2013-03-03 13:56:15roysmithlinkissue17341 messages
2013-03-03 13:56:15roysmithcreate