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 vterron
Recipients Ramchandra Apte, mark.dickinson, rhettinger, vterron
Date 2013-03-20.21:27:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363814830.34.0.878610535859.issue17489@psf.upfronthosting.co.za>
In-reply-to
Content
Ramchandra, that is not the behavior that I am able to reproduce. Please see the attached example: in the presence of __reduce__(), __getstate__() is not being called whether the class or an instance its pickled. This is also in consonance with what is stated in the docs, which warn that "Although powerful, implementing __reduce__() directly in your classes is error prone. For this reason, class designers should use the high-level interface (i.e., __getnewargs__(), __getstate__() and __setstate__()) whenever possible".
History
Date User Action Args
2013-03-20 21:27:10vterronsetrecipients: + vterron, rhettinger, mark.dickinson, Ramchandra Apte
2013-03-20 21:27:10vterronsetmessageid: <1363814830.34.0.878610535859.issue17489@psf.upfronthosting.co.za>
2013-03-20 21:27:10vterronlinkissue17489 messages
2013-03-20 21:27:10vterroncreate