I'm sorry if the topic in wrong section
I'm curious about Python classes __del__
method:
Example:
class A():
[...]
class B():
__init__:
self.a = A()
__del__:
del self.a
b = B()
del b
Do I have to write __del__
method on class B
?
Is A class
instance in B class
remove from memory when remove B
instance or we must use __del__
method like mine?