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 refi64
Recipients refi64
Date 2014-10-01.00:39:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412123993.9.0.244243584379.issue22530@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-10-01 00:39:53refi64setrecipients: + refi64
2014-10-01 00:39:53refi64setmessageid: <1412123993.9.0.244243584379.issue22530@psf.upfronthosting.co.za>
2014-10-01 00:39:53refi64linkissue22530 messages
2014-10-01 00:39:52refi64create