[Python-Dev] string.find() again (was Re: timsort for jython)

Andrew Koenig ark@research.att.com
Wed, 14 Aug 2002 17:23:54 -0400 (EDT)

Guido> It is already done this way, except the attribute is called
Guido> __contains__ and we only ask the right argument for it: "x in y" calls
Guido> "y.__contains__(x)" [if it exists; otherwise there's a fallback that
Guido> loops over y's items comparing them to x].

Ah, that's why you said that it could be done backwards.