[docs] pickle docs - what can be pickled
Georg Brandl
georg at python.org
Tue Jan 1 16:09:58 CET 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/01/2013 01:28 AM, Eli Bendersky wrote:
> In the pickle docs of 3.3, section 12.4.1 says:
>
> "instances of such classes whose __dict__ or __setstate__() is picklable"
>
> Does it actually mean __setstate__ or __getstate__ ?
ISTM __setstate__ is correct, since that's the method that has to be
looked up at unpickling time. (__getstate__ is called at pickling time.)
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEARECAAYFAlDi/EYACgkQN9GcIYhpnLBGEQCeOU8jsEDj0nKLNxcc/Z0LQRNM
k5QAnikcfb72aQ8LjEno0njjhh5JuPuO
=BXY+
-----END PGP SIGNATURE-----
More information about the docs
mailing list