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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22437>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to