[ python-Bugs-794819 ] Named groups limitation in sre

SourceForge.net noreply at sourceforge.net
Sat Nov 8 16:20:13 EST 2003


Bugs item #794819, was opened at 2003-08-25 11:01
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=794819&group_id=5470

Category: Regular Expressions
Group: Python 2.3
Status: Pending
Resolution: None
Priority: 4
Submitted By: Andrea Lombardoni (lomby)
Assigned to: Fredrik Lundh (effbot)
Summary: Named groups limitation in sre

Initial Comment:
In  sre_compile.py 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. 
 

----------------------------------------------------------------------

>Comment By: Brett Cannon (bcannon)
Date: 2003-11-08 13:20

Message:
Logged In: YES 
user_id=357491

Why was this changed to pending?  Is Fredrik working on a fix?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=794819&group_id=5470



More information about the Python-bugs-list mailing list