Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icebraining
on May 9, 2014
|
parent
|
context
|
favorite
| on:
Common Python Mistakes
True, but foo shouldn't be modifying bar anyway; make a copy instead:
bar = list(bar) if bar else []
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: