frozendict
Duncan Booth
duncan.booth at invalid.invalid
Thu Feb 9 05:33:58 EST 2012
More information about the Python-list mailing list
Thu Feb 9 05:33:58 EST 2012
- Previous message (by thread): frozendict
- Next message (by thread): frozendict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nathan Rice <nathan.alexander.rice at gmail.com> 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 order? -- Duncan Booth http://kupuguy.blogspot.com
- Previous message (by thread): frozendict
- Next message (by thread): frozendict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list