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 andyye
Recipients andyye, docs@python
Date 2020-12-29.03:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609211999.49.0.259573414464.issue42776@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-12-29 03:19:59andyyesetrecipients: + andyye, docs@python
2020-12-29 03:19:59andyyesetmessageid: <1609211999.49.0.259573414464.issue42776@roundup.psfhosted.org>
2020-12-29 03:19:59andyyelinkissue42776 messages
2020-12-29 03:19:59andyyecreate