[issue31984] startswith and endswith leak implementation details
Serhiy Storchaka
report at bugs.python.org
Wed Nov 8 15:37:48 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
For the justification of the find() behavior see msg243668.
But the largest argument for this behavior is that find() have it for a long time. Changing it will break existing code that depends on it.
This argument is weaker in the case of startwith() and endwith() because their behavior for bytes and Unicode was inconsistent. But the consistency with find() plays a role.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31984>
_______________________________________
More information about the Python-bugs-list
mailing list