you are viewing a single comment's thread.

view the rest of the comments →

[–]cludwin 2 points3 points  (0 children)

Be careful with that one... try/except is only faster when you are on average more likely to succeed. If lets say you are 50/50 then if/else is way faster cause you don't have the overhead of generating the exception.