[issue13998] Lookbehind assertions go behind the start position for the match
Matthew Barnett
report at bugs.python.org
Mon Feb 13 18:39:22 CET 2012
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
The documentation says of the 'pos' parameter "This is not completely equivalent to slicing the string" and of the 'endpos' parameter "it will be as if the string is endpos characters long".
In other words, it starts searching at 'pos' but truncates at 'endpos'.
Yes, it's inconsistent, but it's documented.
----------
nosy: +mrabarnett
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13998>
_______________________________________
More information about the Python-bugs-list
mailing list