30 May
2010
30 May
'10
7:53 p.m.
Lie Ryan
what's wrong with dict[id(key)] = foo?
For one, you can't get the value of the key out of the dict.
that their id() is expensive is implementation details, and the developer of PyPy should solve that instead of adding a clutch to the stdlib.
A "clutch"? Even ignoring PyPy, an identitydict is still a useful primitive.