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.

Title: Named groups limitation in sre
Type: Stage:
Components: Regular Expressions Versions: Python 2.3
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: effbot Nosy List: brett.cannon, effbot, lomby
Priority: low Keywords:

Created on 2003-08-25 18:01 by lomby, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (2)
msg17952 - (view) Author: Andrea Lombardoni (lomby) Date: 2003-08-25 18:01
In line 473 stands: 
    # XXX: <fl> get rid of this limitation! 
    assert p.pattern.groups <= 100,\ 
           "sorry, but this version only supports 100 named groups" 
In sre.h line 53: 
/* FIXME: <fl> shouldn't be a constant, really... */ 
#define SRE_MARK_SIZE 200 
Small problem: the two numbers do not to match. 
Big problem: if this limitation cannot be eliminated (as 
suggested by the comments), I suggest setting SRE_MARK_SIZE 
of at least 1000. 
msg17953 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-11-08 21:20
Logged In: YES 

Why was this changed to pending?  Is Fredrik working on a fix?
Date User Action Args
2022-04-10 16:10:50adminsetgithub: 39126
2003-08-25 18:01:53lombycreate