Message184800
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". |
|
Date |
User |
Action |
Args |
2013-03-20 21:27:10 | vterron | set | recipients:
+ vterron, rhettinger, mark.dickinson, Ramchandra Apte |
2013-03-20 21:27:10 | vterron | set | messageid: <1363814830.34.0.878610535859.issue17489@psf.upfronthosting.co.za> |
2013-03-20 21:27:10 | vterron | link | issue17489 messages |
2013-03-20 21:27:10 | vterron | create | |
|