frozendict

Nathan Rice nathan.alexander.rice at gmail.com
Wed Feb 8 22:43:33 EST 2012


> Turn the question around: why should there be?
> Python is intentionally parsimonious in adding builtins.

For the same reason there are frozensets?

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.


Nathan



More information about the Python-list mailing list