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.

Author malin
Recipients abacabadabacaba, alexei.romanov, ezio.melotti, malin, mrabarnett, serhiy.storchaka, vstinner
Date 2022-03-29.15:13:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648566796.27.0.26424965106.issue23689@roundup.psfhosted.org>
In-reply-to
Content
My PR methods are suboptimal, so I closed them.

The number of REPEAT can be counted when compiling a pattern, and allocate a `SRE_REPEAT` array in `SRE_STATE` (with that number items).

It seem at any time, a REPEAT will only have one in active, so a `SRE_REPEAT` array is fine.
regex module does like this:
https://github.com/mrabarnett/mrab-regex/blob/hg/regex_3/_regex.c#L18287-L18288

Can the number of REPEAT be placed in `SRE_OP_INFO`?
And add a field to `SRE_OP_REPEAT` to indicate the index of this REPEAT.
History
Date User Action Args
2022-03-29 15:13:16malinsetrecipients: + malin, vstinner, ezio.melotti, mrabarnett, abacabadabacaba, serhiy.storchaka, alexei.romanov
2022-03-29 15:13:16malinsetmessageid: <1648566796.27.0.26424965106.issue23689@roundup.psfhosted.org>
2022-03-29 15:13:16malinlinkissue23689 messages
2022-03-29 15:13:16malincreate