Comment on Ask HN: What's the most elegant piece of code you've seen?parentComments−elliptic10yI noticed that, but haven't any idea what the purpose is?−pmiller210yIt's a speed optimization. Local lookups are faster than global lookups in Python.
Comments
I noticed that, but haven't any idea what the purpose is?
It's a speed optimization. Local lookups are faster than global lookups in Python.