Martin Panter added the comment:

There is a cycle involving the class object, but I don’t think there is a cycle 
involving the instance objects this time.

However, I wonder if __del__() is meant to be called in any particular order 
anyway. What’s to stop the garbage collector itself from creating a temporary 
reference to the Device instance, destroying the Vector instance, which invokes 
Vector.__del__(), and finally destroying the temporary reference to the Device 
instance?

----------
nosy: +vadmium

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

Reply via email to