a simple 'else' decrease speed by 1000 times.
Chris Liechti
cliechti at gmx.net
Sat Mar 2 09:16:35 EST 2002
husam <h.jehadalwan at student.kun.nl> wrote in news:3C80BBAC.2060600
@student.kun.nl:
> One else statement decrease speed by 1000 times. Why is that?
...
> if prv == n[i][-1]:
> n[i].append(new)
> print count, '\t', i , '\t',n[i]
> count = count +1
> break
> else:
> n[i].append(0)
'cause your not "break"-ing here? but you do in the "if-then" part...
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list