[issue1647489] zero-length match confuses re.finditer()
Matthew Barnett
report at bugs.python.org
Wed Sep 24 19:59:57 CEST 2008
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
What should:
[m.groups() for m in re.finditer(r'(^z*)|(^q*)|(\w+)', 'abc')]
return? Should the second group also yield a zero-width match before the
third group is tried? I think it probably should. Does Perl?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1647489>
_______________________________________
More information about the Python-bugs-list
mailing list