Serhiy Storchaka added the comment: Opened separate issue24284 for inconsistency in startswith/endswith. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24243> _______________________________________