optimization question

Terry Reedy tjreedy at udel.edu
Mon Aug 12 16:32:23 CEST 2002


>>     s[i:j] == t

>Maybe you want something like: t in s

No.  This is not currently legal, though probably will be in 2.3.
Anyway, asking if t is *anywhere* is s (megabytes in len) is *much*
more general than asking if it is at a specific location.

TJR






More information about the Python-list mailing list