[issue31209] MappingProxyType can not be pickled

Raymond Hettinger report at bugs.python.org
Tue Aug 22 22:43:39 EDT 2017


Raymond Hettinger added the comment:

> So I guess my questions now are;
> 
> 1. Should types.MappingProxyType be pickleable?
> 2. Should there be some documentation about the intended use of
> MappingProxyType?
>
> I imagine the answer to the first question is "no" given 
> how `__setstate__` works.

For the second question, I don't think so.  AFAICT the only intention was to support the actual mapping views for regular dicts.  Its likely that not much thought was given to other uses, so it doesn't make sense to document intention when none really exists ;-)

Given the answers above and that you have a PR solve your upstream issue with Schematics, can this bug report be closed?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31209>
_______________________________________


More information about the Python-bugs-list mailing list