optimization question

Chirayu thephoenix235 at gmx.net
Sun Aug 11 23:22:04 EDT 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