frozendict (v0.1)

kj at
Fri Oct 8 17:03:13 CEST 2010

In <mailman.1463.1286546684.29448.python-list at> "Jonas H." <jonas at> writes:

>Hope this helps :-)

It did!  Thanks!  For one thing now I see that I was barking up
the wrong tree in focusing on a canonical order, when, as the code
you posted shows, it is actually not required for hashing.

In fact, I'd come to the conclusion that frozensets had a consistent
order (i.e. frozensets that were equal according to '==' would be
iterated over in the same order), but now I'm not sure that this
is the case.  (Granted, semantically, there's nothing in the
definition of a frozenset that would imply a consistent iteration

Thanks again!


More information about the Python-list mailing list