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

the `in` keyword uses `__contains__` under the hood, if I remember correctly, so you could always make a `dict` subclass that provides this functionality.



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

Search: