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 jdemeyer
Recipients ezio.melotti, jdemeyer, mrabarnett
Date 2016-06-01.14:20:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464790808.77.0.698310162067.issue27177@psf.upfronthosting.co.za>
In-reply-to
Content
```
>>> class zero(object):
...     def __index__(self):
...         return 0
... 
>>> z = zero()
>>> import re
>>> p = re.compile('(a)b')
>>> m = p.match('ab')
>>> m.group(0)
'ab'
>>> m.group(z)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: no such group
```
History
Date User Action Args
2016-06-01 14:20:08jdemeyersetrecipients: + jdemeyer, ezio.melotti, mrabarnett
2016-06-01 14:20:08jdemeyersetmessageid: <1464790808.77.0.698310162067.issue27177@psf.upfronthosting.co.za>
2016-06-01 14:20:08jdemeyerlinkissue27177 messages
2016-06-01 14:20:08jdemeyercreate