[Python-Dev] Re: Generalizing "in" to pairs of sequences

Barry 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