Duncan Booth duncan.booth at invalid.invalid
Thu Feb 9 11:33:58 CET 2012

Nathan Rice <nathan.alexander.rice at> wrote:

> I put dicts in sets all the time.  I just tuple the items, but that
> means you have to re-dict it on the way out to do anything useful with
> it.  I am too lazy to write a frozendict or import one, but I would
> use it if it was a builtin.
I hope you sort the items before putting them in a tuple, otherwise how do 
you handle two identical dicts that return their items in a different 

Duncan Booth

More information about the Python-list mailing list