[issue34312] Allow str.endswith and str.startswith to accept an iterable

Tal Einat report at bugs.python.org
Fri Aug 3 02:05:02 EDT 2018


Tal Einat <taleinat at gmail.com> added the comment:

I tend to agree.  ISTM that for users, understanding the error message and passing a tuple is trivial, while realizing the performance benefit of using a tuple rather than a list or set here is certainly non-trivial.

----------

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


More information about the Python-bugs-list mailing list