Eric V. Smith <e...@trueblade.com> added the comment:

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.

----------
nosy: +eric.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47034>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to