
March 1, 2017
8:40 a.m.
On 28 February 2017 at 23:19, Victor Stinner <victor.stinner@gmail.com> wrote:
2017-02-28 13:17 GMT+01:00 Michel Desmoulin <desmoulinmichel@gmail.com>:
We have the immutable frozenset for sets and and tuples for lists.
But we also have something to manipulate dict as immutable datastructures:
... Sorry, I don't understand your proposition.
My interpretation of the idea is to reconsider https://www.python.org/dev/peps/pep-0416/ but put frozendict in collections, not in builtins. MappingProxyType could be a possible implementation (plus copying in constructor and hashing, as proposed above by Matt), but not necessarily. -- Ivan