Message383949
data = 'abcddd'
# True
data.find('a', 0)
# False
data.find('a', start=0)
# document
class str(obj):
def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.find(sub[, start[, end]]) -> int
Return the lowest index in S where substring sub is found,
such that sub is contained within S[start:end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
"""
return 0 |
|
Date |
User |
Action |
Args |
2020-12-29 03:19:59 | andyye | set | recipients:
+ andyye, docs@python |
2020-12-29 03:19:59 | andyye | set | messageid: <1609211999.49.0.259573414464.issue42776@roundup.psfhosted.org> |
2020-12-29 03:19:59 | andyye | link | issue42776 messages |
2020-12-29 03:19:59 | andyye | create | |
|