A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/017313.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 sequencesAlex Coventry alex_c@MIT.EDU
27 Aug 2001 07:41:26 -0400
Sometimes I find myself wishing that strings had a method "substringp"
that would do basically what Eric wants, like

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

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

Alex.



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