optimization question

Chirayu thephoenix235 at gmx.net
Mon Aug 12 05:22:04 CEST 2002


>
>Right, but we'd still potentially scan megabytes.
>
>How about: (s.find(t,i,min(j,i+len(t)) == i)
>
>Erh... which, provided I got it right this time, isn't
>nearly as obviously readable as the original test...

s.startswith (t, i, j) ???





More information about the Python-list mailing list