[New-bugs-announce] [issue22437] re module: number of named groups is limited to 100 max

Yury Selivanov report at bugs.python.org
Thu Sep 18 19:39:42 CEST 2014


New submission from Yury Selivanov:

While writing a lexer for javascript language, I managed to hit the limit of named groups in one regexp, it's 100.  The check is in sre_compile.py:compile() function, and there is even an XXX comment on this.

Unfortunately, I'm not an expert in this module, so I'm not sure if this check can be lifted, or at least if the number can be bumped to 200 or 500 (why is 100 btw?)

Please share your thoughts.

----------
components: Library (Lib), Regular Expressions
messages: 227055
nosy: ezio.melotti, haypo, mrabarnett, pitrou, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: re module: number of named groups is limited to 100 max
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22437>
_______________________________________


More information about the New-bugs-announce mailing list