Mailing List Archive

re should gripe about repeated group names (PR#14)
Full_Name: Tim Peters
Version: 1.5.2
OS: Win95
Submission from: (

>>> p = re.compile("(?P<a> a1) (?P<a> b2)")
>>> p.groupindex
{'a': 2}

re can't do anything sensible with a repeated group name, so it should complain
about it instead of silently redefining it. Has come up a few times on