Hacker News new | ask | show | jobs
by koenigdavidmj 5180 days ago
I am on my phone and cannot test this, but the try:except: construct is optimised for the non-exceptional path. The latter is probably faster for x[0] than x[20].