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

Small nitpick -- Python doesn't require immutable objects for dictionary keys, it just won't work correctly in some cases with mutable keys.


Well, technically the requirement is to implement both __hash__() and one of __eq__()/__cmp__(). But Python fudges this a bit in how it handles user-defined types.




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

Search: