[issue20804] Sentinels identity lost when pickled (unittest.mock)

R. David Murray report at bugs.python.org
Fri Feb 28 18:33:23 CET 2014


R. David Murray added the comment:

Personally I think that's a bad idea.  Anything that implies that object identity can survive pickle/unpickle is IMO bad, since pickle is a serialization protocol and in real life (as opposed to tests) the process that does the unpickle is almost always not the process that does the pickle.

----------

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


More information about the Python-bugs-list mailing list