Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bpeebles
on Nov 27, 2014
|
parent
|
context
|
favorite
| on:
Python idioms I wish I'd learned earlier
Of course, sometimes I still type:
D.get(key, None)
since I forget that dict.get and getattr() have different behavior in the case of missing keys/attributes...
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: