[ 
https://issues.apache.org/jira/browse/AVRO-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fokko Driesprong reassigned AVRO-2234:
--------------------------------------

    Assignee: Michael A. Smith

> Use native MappingProxyType instead of hand-written ImmutableDict
> -----------------------------------------------------------------
>
>                 Key: AVRO-2234
>                 URL: https://issues.apache.org/jira/browse/AVRO-2234
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: python
>            Reporter: Michael A. Smith
>            Assignee: 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)

Reply via email to