Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment:

It's a bug caused by trying to avoid getting stuck when a zero-width match is 
found. Basically the fix is to advance one character after a zero-width match, 
but that doesn't always give the correct result.

There are a number of related issues like issue #1647489 ("zero-length match 
confuses re.finditer()").

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10328>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to