Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs
re should gripe about repeated group names (PR#13)
 

Index | Next | Previous | View Flat


tim_one at email

Jul 12, 1999, 5:56 PM


Views: 261
Permalink
re should gripe about repeated group names (PR#13)

Full_Name: Tim Peters
Version: 1.5.2
OS: Win95
Submission from: 1cust154.tnt3.bos1.da.uu.net (153.34.162.154)


>>> 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 c.l.py.

Subject User Time
re should gripe about repeated group names (PR#13) tim_one at email Jul 12, 1999, 5:56 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.