Serhiy Storchaka added the comment:

To pickle by value, the subclass needs only restore current implementation of 
__reduce_ex__():

    def __reduce_ex__(self, proto):
        return self.__class__, (self.value,)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20653>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to