Weird try-except vs if behavior

James Matthews nytrokiss at
Fri Oct 15 07:43:37 CEST 2010


I have this code (I don't like pasting code
into the mailing list). I am wondering why the try except is taking longer.
I assume that if the IF statement checks every iteration of the loop (1000
times) shouldn't it be slower?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list