[
https://issues.apache.org/jira/browse/AVRO-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678361#comment-16678361
]
ASF subversion and git services commented on AVRO-2234:
-------------------------------------------------------
Commit 9e60e59c53e006629a341822a39a22fa35f8270c in avro's branch
refs/heads/master from [~kojiro]
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=9e60e59 ]
AVRO-2234 Use MappingProxyType, not ImmutableDict (#337)
Per the Rejection Notice of PEP-416, use MappingProxyType instead of
creating our own implementation of ImmutableDict.
> Use native MappingProxyType instead of hand-written ImmutableDict
> -----------------------------------------------------------------
>
> Key: AVRO-2234
> URL: https://issues.apache.org/jira/browse/AVRO-2234
> Project: Avro
> Issue Type: Improvement
> Components: python
> Reporter: Michael A. Smith
> Priority: Major
> Fix For: 1.9.0
>
>
> Per the rejection notice in
> [PEP-416,|https://www.python.org/dev/peps/pep-0416/] there is no native
> ImmutableDict in Python. However, there is a MappingProxyType that makes a
> proxy to the mapping of a dictionary, and is fully native. For most purposes,
> including avro's, it's a fully suitable replacement for a real ImmutableDict
> implementation (except for a minor detail about JSON encoding that is easier
> to solve and support than maintaining a complete implementation of
> ImmutableDict.)
> I propose that we drop ImmutableDict and replace it with MappingProxyType.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)