[issue31984] startswith and endswith leak implementation details

Ronan Lamy report at bugs.python.org
Wed Nov 8 12:57:39 EST 2017


Ronan Lamy <ronan.lamy at gmail.com> added the comment:

The problem is the complexity of the actual behaviour of these methods. 

It is impossible to get it right without looking at the source (at least, it was for me), and I doubt any ordinary user can correctly make use of the v='' behaviour, or predict what the return value will be in all cases.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31984>
_______________________________________


More information about the Python-bugs-list mailing list