[Python-3000] Simplifying pickle for Py3k

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 4 00:24:14 CEST 2007


skip at pobox.com wrote:
> I've been going through that (painful) exercise the past couple of
> days as I try and figure out what methods my to-be-pickled objects need to
> implement.  __reduce__, __reduce_ex__, __getstate__, __setstate__, copy_reg,
> __safe_for_unpickling__, __getnewargs__.  Your head starts to swim after
> awhile.

Not all of these are old cruft -- some of them are alternatives
that are useful in one situation or another. Some of them
could no doubt be removed, though.

--
Greg


More information about the Python-3000 mailing list