This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Ronan.Lamy, barry, r.david.murray, serhiy.storchaka, steven.daprano
Date 2017-11-09.00:03:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510185792.77.0.213398074469.issue31984@psf.upfronthosting.co.za>
In-reply-to
Content
I don't have Python 3.7 available to me, but in 3.5 the behaviour of u.startswith(v) with an empty v seems consistent to me:


py> "alpha".startswith("", 20, 30)
True
py> "alpha"[20:30].startswith("")
True

py> "".startswith("", 20, 30)
True
py> ""[20:30].startswith("")
True

So I can't see any inconsistency that might be fixed by always returning True in the case v="", as that appears to already be the case.
History
Date User Action Args
2017-11-09 00:03:12steven.dapranosetrecipients: + steven.daprano, barry, r.david.murray, serhiy.storchaka, Ronan.Lamy
2017-11-09 00:03:12steven.dapranosetmessageid: <1510185792.77.0.213398074469.issue31984@psf.upfronthosting.co.za>
2017-11-09 00:03:12steven.dapranolinkissue31984 messages
2017-11-09 00:03:12steven.dapranocreate