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/017328.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
Tue, 28 Aug 2001 16:52:30 -0400
>>>>> "ESR" == Eric S Raymond <esr@thyrsus.com> writes:

    >>  substringp would probably be the wrong name for it, though.
    >>  Hmm, "hassubstring()"?

    ESR> How about "contains"?  E.g.

    | if a.contains(b):
    | 	# do stuff

Heh, and from there it's a small leap to a.__contains__(b), a.k.a.
"b in a".

Sneaky Eric, very sneaky. :)

-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