Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your example will throw a KeyError if "input" doesn't contain "foo", and an AttributeError if "foo" is some unexpected data type that doesn't have keys().


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: