[issue7940] re.finditer and re.findall should support negative end positions
Matthew Barnett
report at bugs.python.org
Fri May 24 00:44:02 CEST 2013
Matthew Barnett added the comment:
Yes. As msg99456 suggests, I fixed it the my source code before posting.
Compare re in Python 3.3.2:
>>> re.compile('x').findall('xxxx', 1, 3)
['x', 'x']
>>> re.compile('x').findall('xxxx', 1, -1)
[]
with regex:
>>> regex.compile('x').findall('xxxx', 1, 3)
['x', 'x']
>>> regex.compile('x').findall('xxxx', 1, -1)
['x', 'x']
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7940>
_______________________________________
More information about the Python-bugs-list
mailing list