bearophileh...@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$54022...@news.sunrise.ch> -- http://mail.python.org/mailman/listinfo/python-list