Tom Dawes added the comment:
Please ignore, re.finditer and REGEX.finditer aren't the same. I was passing
re.MULTILINE (= 8) to endPos.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
New submission from Tom Dawes :
re.finditer appears to fail to match within the first 7 characters in a string
when re.MULTILINE is used:
>>> REGEX = re.compile("y")
>>> [list(m.start() for m in REGEX.finditer("{}y".format("x"*i), re.MULTILINE))
>>> for i in range(10)]
[[], [], [], [], [],