This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alexandre.vassalotti, barry, eli.bendersky, ethan.furman, larry, pitrou, serhiy.storchaka
Date 2014-02-17.17:19:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392657542.94.0.74789570926.issue20653@psf.upfronthosting.co.za>
In-reply-to
Content
To pickle by value, the subclass needs only restore current implementation of __reduce_ex__():

    def __reduce_ex__(self, proto):
        return self.__class__, (self.value,)
History
Date User Action Args
2014-02-17 17:19:02serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, larry, alexandre.vassalotti, eli.bendersky, ethan.furman
2014-02-17 17:19:02serhiy.storchakasetmessageid: <1392657542.94.0.74789570926.issue20653@psf.upfronthosting.co.za>
2014-02-17 17:19:02serhiy.storchakalinkissue20653 messages
2014-02-17 17:19:02serhiy.storchakacreate