Message180505
IMHO, I don't think that MAXREPEAT should be defined in sre_constants.py _and_ SRE_MAXREPEAT defined in sre_constants.h. (In the latter case, why is it in decimal?)
I think that it should be defined in one place, namely sre_constants.h, perhaps as:
#define SRE_MAXREPEAT ~(SRE_CODE)0
and then imported into sre_constants.py.
That'll reduce the chance of an inadvertent mismatch, and it's the C code that's imposing the limit to the number of repeats, not the Python code. |
|
Date |
User |
Action |
Args |
2013-01-24 03:53:01 | mrabarnett | set | recipients:
+ mrabarnett, vstinner, ezio.melotti, brian.curtin, techmaurice, serhiy.storchaka |
2013-01-24 03:53:01 | mrabarnett | set | messageid: <1358999581.3.0.808903557849.issue13169@psf.upfronthosting.co.za> |
2013-01-24 03:53:01 | mrabarnett | link | issue13169 messages |
2013-01-24 03:53:01 | mrabarnett | create | |
|