Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31984>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to