[New-bugs-announce] [issue31209] MappingProxyType can not be pickled
Alex Hayes
report at bugs.python.org
Tue Aug 15 00:49:11 EDT 2017
New submission from Alex Hayes:
I imagine that this is by design (likely because it can't be implemented) however I wanted to check if this was the case.
Instances of types.MappingProxyType can't be pickled.
For example;
```
import pickle
from types import MappingProxyType
eggs = MappingProxyType(dict(sausage=True))
pickle.dumps(eggs)
```
Raises: TypeError: can't pickle mappingproxy objects
----
Is this the desired behaviour or is it a bug?
----------
components: Library (Lib)
messages: 300284
nosy: Alex Hayes
priority: normal
severity: normal
status: open
title: MappingProxyType can not be pickled
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31209>
_______________________________________
More information about the New-bugs-announce
mailing list