Weird try-except vs if behavior

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


Hi,

I have this code http://gist.github.com/627687 (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?


James

-- 
http://www.goldwatches.com

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101014/2838c4d3/attachment.html>


More information about the Python-list mailing list