[ python-Bugs-794819 ] Named groups limitation in sre
SourceForge.net
noreply at sourceforge.net
Sat Nov 8 16:01:24 EST 2003
Bugs item #794819, was opened at 2003-08-25 21:01
Message generated for change (Settings changed) made by lomby
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.
----------------------------------------------------------------------
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