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 eric.smith
Recipients eric.smith, jeffersonqin
Date 2022-03-16.15:13:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647443636.34.0.308919049349.issue47034@roundup.psfhosted.org>
In-reply-to
Content
child is not an attribute of a Parent instance, but rather of the Parent class. So it's not going to be saved when you dump "parent", which is an instance of Parent.

I'm not sure what you're doing when you create a Parent.__init__ method, but presumably setting self.child, which will then create an instance attribute which will get saved by pickle.
History
Date User Action Args
2022-03-16 15:13:56eric.smithsetrecipients: + eric.smith, jeffersonqin
2022-03-16 15:13:56eric.smithsetmessageid: <1647443636.34.0.308919049349.issue47034@roundup.psfhosted.org>
2022-03-16 15:13:56eric.smithlinkissue47034 messages
2022-03-16 15:13:56eric.smithcreate