Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hayd
on Jan 31, 2016
|
parent
|
context
|
favorite
| on:
Ask HN: What's the most elegant piece of code you'...
The scope lifting (I forget what this performance hack is called), `_len = len` etc., is unsatisfying.
elliptic
on Jan 31, 2016
[–]
I noticed that, but haven't any idea what the purpose is?
pmiller2
on Jan 31, 2016
|
parent
[–]
It's a speed optimization. Local lookups are faster than global lookups in Python.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: