On 28 February 2017 at 23:19, Victor Stinner <[email protected]> wrote:
> 2017-02-28 13:17 GMT+01:00 Michel Desmoulin <[email protected]>: > > 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
_______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
