frozendict (v0.1)
kj
no.email at please.post
Fri Oct 8 11:03:13 EDT 2010
In <mailman.1463.1286546684.29448.python-list at python.org> "Jonas H." <jonas at lophus.org> 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
order.)
Thanks again!
~kj
More information about the Python-list
mailing list