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 <rep...@bugs.python.org>
<http://bugs.python.org/issue31209>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to