Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jmillikin
on July 23, 2009
|
parent
|
context
|
favorite
| on:
On "magic", once again (from James Bennet, Django ...
Small nitpick -- Python doesn't
require
immutable objects for dictionary keys, it just won't work correctly in some cases with mutable keys.
ubernostrum
on July 23, 2009
[–]
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: