Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koenigdavidmj
on April 12, 2012
|
parent
|
context
|
favorite
| on:
A primer on Python decorators
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].
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: