[issue7132] Regexp: capturing groups in repetitions
Philippe Verdy
report at bugs.python.org
Wed Oct 14 22:55:54 CEST 2009
Philippe Verdy <verdy_p at wanadoo.fr> added the comment:
Implementation details:
Currently, the capturing groups behave quite randomly in the values returned by MachedObject, when backtracking occurs in a repetition. This
proposal will help fix the behavior, because it will also be much easier
to backtrack cleanly, occurence by occurence, by just dropping the last
element in the list of (start,end) pairs stored in the MatchedObject for
all capturing groups specified WITHIN the repeated sub-expression.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7132>
_______________________________________
More information about the Python-bugs-list
mailing list