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

Eric S. Raymond esr@thyrsus.com
Mon, 27 Aug 2001 14:01:34 -0400


Barry A. Warsaw <barry@zope.com>:
>     AC> substringp would probably be the wrong name for it, though.
> 
> Hmm, "hassubstring()"?

How about "contains"?  E.g.

if a.contains(b):
	# do stuff
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

(Those) who are trying to read the Second Amendment out of the Constitution by
claiming it's not an individual right (are) courting disaster by encouraging
others to use the same means to eliminate portions of the Constitution they
don't like.
	-- Alan Dershowitz, Harvard Law School