Does Python3 offer a FrozenDict?
Johannes Bauer
dfnsonfsduifb at gmx.de
Tue Dec 16 23:51:45 EST 2008
bearophileHUGS at lycos.com schrieb:
> Johannes Bauer:
>> is there anything like a frozen dict in Python3, so I could do a
>> foo = { FrozenDict({"a" : "b"}): 3 }
>
> You can adapt this code to Python3 (and post a new recipe? It may be
> positive to create a new section of the Cookbook for Py3 only):
> http://code.activestate.com/recipes/414283/
Well, yes, I've been using something like that so far - but I think this
is functionality the language should provide - therefore I thought maybe
Python3 included something like this already.
Regards,
Johannes
--
"Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
-- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
<48d8bf1d$0$7510$5402220f at news.sunrise.ch>
More information about the Python-list
mailing list