[issue34294] re.finditer and lookahead bug

Ma Lin report at bugs.python.org
Sun Jan 13 22:08:06 EST 2019


Ma Lin <malincns at 163.com> added the comment:

I tried to fix it, feel free to create a new PR if you don't want this one.

PR11546 has a small question, should `state->data_stack` be dealloced as well?

FYI, function `state_reset(SRE_STATE* state)` in file `_sre.c`:
https://github.com/python/cpython/blob/d4f9cf5545d6d8844e0726552ef2e366f5cc3abd/Modules/_sre.c#L340-L352

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34294>
_______________________________________


More information about the Python-bugs-list mailing list