Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steve-howard
on March 15, 2012
|
parent
|
context
|
favorite
| on:
Why we need Python in the Browser
That's Ruby, if I'm not mistaken. In Python you'd do
filter(lambda e: e.isFoo, items)
andreasvc
on March 15, 2012
[–]
It's more Pythonic to write
[e for e in items if e.isFoo]
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
filter(lambda e: e.isFoo, items)