Fuzzy string matching?
Alexander Williams
thantos at brimstone.mecha
Sat Aug 28 15:06:42 EDT 1999
On 28 Aug 1999 19:50:04 +0200, Magnus L. Hetland <mlh at idt.ntnu.no> wrote:
>
>Yet another version, without the append...
Now, this is how i like to see good code evolve, but one touch ...
> for j in range(1,n+1):
This is inside the "i" loop; as such, it'll get recomputed every time
through. Moshe was on the right track to move the computation of the
ranges outside the loop, since this is constat. :)
--
Alexander Williams (thantos at gw.total-web.net)
"In the end ... Oblivion Always Wins."
More information about the Python-list
mailing list