Hacker News new | past | comments | ask | show | jobs | submit login

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: