[issue34873] re.finditer behaviour in re.MULTILINE mode fails to match first 7 characters

2018-10-02 Thread Tom Dawes
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 tracke

[issue34873] re.finditer behaviour in re.MULTILINE mode fails to match first 7 characters

2018-10-02 Thread Tom Dawes
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