Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steve-howard
on June 12, 2011
|
parent
|
context
|
favorite
| on:
Python idioms
The rule of thumb I've read is that map is appropriate and (generally) faster when you do not need to create a lambda.
Estragon
on June 12, 2011
[–]
That's not strictly correct. It really comes down to whether you're calling a native python function or a C extension. If it's a native python function call, it's going to be relatively slow.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: