[Python-Dev] string.find() again (was Re: timsort for jython)
Guido van Rossum
guido@python.org
Mon, 05 Aug 2002 15:14:37 -0400
> > Are you also proposing to allow
> >
> > if [2, 3] in [1, 2, 3, 4]
> >
> > which is effectively the meaning you seem to be proposing for
> > strings?
>
> No, since it's not a common thing to need.
Of course, there's another reason why that can't be done even if it
*was* a common need: [2, 3] could be a list item, e.g. [1, [2, 3], 4].
This kind of thing can't happen for strings.
--Guido van Rossum (home page: http://www.python.org/~guido/)