A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/017314.html below:

Generalizing "in" to pairs of sequences

[Python-Dev] Re: Generalizing "in" to pairs of sequences [Python-Dev] Re: Generalizing "in" to pairs of sequencesBarry A. Warsaw barry@zope.com
Mon, 27 Aug 2001 09:51:03 -0400
>>>>> "AC" == Alex Coventry <alex_c@MIT.EDU> writes:

    AC> Sometimes I find myself wishing that strings had a method
    AC> "substringp" that would do basically what Eric wants, like

    >> 'cabcd'.substringp('ca')
    AC> 1
    >> 'cabcd'.substringp('xx')
    AC> 0

    AC> substringp would probably be the wrong name for it, though.

Hmm, "hassubstring()"?

not-implying-a-vote-on-adding-such-a-method-ly y'rs,
-Barry



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4