Message228043
This should work (but doesn't):
Python 2.7.8+ (2.7:63dc1e32b715, Sep 30 2014, 19:24:46)
[GCC 4.2.1 Compatible Clang 3.5.0 (207381)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.match('(foo)', 'foo').group(1L)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: no such group
>>>
I *think* the attached patch fixes it (but I'm not quite sure).
Here's the relevant mailing list thread: https://mail.python.org/pipermail/python-ideas/2014-September/029590.html. |
|
Date |
User |
Action |
Args |
2014-10-01 00:39:53 | refi64 | set | recipients:
+ refi64 |
2014-10-01 00:39:53 | refi64 | set | messageid: <1412123993.9.0.244243584379.issue22530@psf.upfronthosting.co.za> |
2014-10-01 00:39:53 | refi64 | link | issue22530 messages |
2014-10-01 00:39:52 | refi64 | create | |
|