Re: [Python-Dev] frozendict (was: Possible patch for functools partial...)

2010-05-16 Thread Nick Coghlan
Antoine Pitrou wrote: > On Sun, 16 May 2010 11:55:14 +1000 > Yaniv Aknin 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 > lea

Re: [Python-Dev] frozendict (was: Possible patch for functools partial...)

2010-05-16 Thread Antoine Pitrou
On Sun, 16 May 2010 11:55:14 +1000 Yaniv Aknin 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, then hashing is

[Python-Dev] frozendict (was: Possible patch for functools partial...)

2010-05-15 Thread Yaniv Aknin
> > > 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