[docs] Builtin-types, str.end_with, doc might be unclear

Qingwen Guan buaa.gg at gmail.com
Thu Jul 9 05:47:45 CEST 2015


Hi,

When I am reading the builtin-types session of the py2.7 document(
https://docs.python.org/2/library/stdtypes.html), I personal think the doc
of the *str.ends_with(suffix[, start, [end]]) *API is not clear enough.

With optional*start*, test beginning at that position. With optional *end*,
stop comparing at that position.

There might be ambiguity if it mean str[start:end].ends_with(suffix), or
str[end:start].ends_with(suffix).

-- 
Best Regards,
Qingwen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20150709/024f3ac8/attachment.html>


More information about the docs mailing list