Message183375
>>> 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. |
|
Date |
User |
Action |
Args |
2013-03-03 13:56:16 | roysmith | set | recipients:
+ roysmith, ezio.melotti, mrabarnett |
2013-03-03 13:56:15 | roysmith | set | messageid: <1362318975.95.0.685473127287.issue17341@psf.upfronthosting.co.za> |
2013-03-03 13:56:15 | roysmith | link | issue17341 messages |
2013-03-03 13:56:15 | roysmith | create | |
|