[issue13998] Lookbehind assertions go behind the start position for the match
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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list