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 pierreglaser
Recipients alexandre.vassalotti, docs@python, pierreglaser, pitrou, serhiy.storchaka
Date 2019-02-07.17:55:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549562122.06.0.315178283617.issue35933@roundup.psfhosted.org>
In-reply-to
Content
Hello all,
This 16-year old commit (*) allows an object's state to be updated
using its slots instead of its __dict__ at unpickling time. To use this
functionality, the state keyword-argument of Pickler.save_reduce (which maps to
the third item of the tuple returned by __reduce__) should be a length-2 tuple.
As far as I can tell, this is not mentioned in the documentation (**). I suggest having the docs updated. What do you think?

(*) https://github.com/python/cpython/commit/ac5b5d2e8b849c499d323b0263ace22e56b4f0d9
(**) https://docs.python.org/3.8/library/pickle.html#object.__reduce__
History
Date User Action Args
2019-02-07 17:55:24pierreglasersetrecipients: + pierreglaser, pitrou, alexandre.vassalotti, docs@python, serhiy.storchaka
2019-02-07 17:55:22pierreglasersetmessageid: <1549562122.06.0.315178283617.issue35933@roundup.psfhosted.org>
2019-02-07 17:55:22pierreglaserlinkissue35933 messages
2019-02-07 17:55:21pierreglasercreate