On Sun, 16 May 2010 11:55:14 +1000
Yaniv Aknin ya...@aknin.name wrote:
Is the whole notion of a frozendict
worthy, given this limitation?
I don't think so. Of course we how have a more general problem:
- if we choose to implement only equality testing for partials and
leave hashing as is,
Antoine Pitrou wrote:
On Sun, 16 May 2010 11:55:14 +1000
Yaniv Aknin ya...@aknin.name wrote:
Is the whole notion of a frozendict
worthy, given this limitation?
I don't think so. Of course we how have a more general problem:
- if we choose to implement only equality testing for partials and
So I'm thinking either we make an
immutable/hashable dict while we're at it, or store the keyword
arguments as a tuple (which guarantees immutability), and only
convert them back to a dict when you want to call the partial object
(simpler, slower).
I'd support an immutable dict. [...]