<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 28 February 2017 at 23:19, Victor Stinner <span dir="ltr"><<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">2017-02-28 13:17 GMT+01:00 Michel Desmoulin <<a href="mailto:desmoulinmichel@gmail.com">desmoulinmichel@gmail.com</a>>:<br>
> We have the immutable frozenset for sets and and tuples for lists.<br>
><br>
> But we also have something to manipulate dict as immutable datastructures:<br></span><br>
... Sorry, I don't understand your proposition.<br></blockquote><div><br></div><div>My interpretation of the idea is to reconsider <a href="https://www.python.org/dev/peps/pep-0416/">https://www.python.org/dev/peps/pep-0416/</a><br></div><div>but put frozendict in collections, not in builtins.<br></div><div><br>MappingProxyType could be a possible implementation<br>(plus copying in constructor and hashing, as proposed above by Matt),<br></div><div>but not necessarily.<br><br>--<br></div><div>Ivan<br><br><br></div></div></div></div>