I have some class like this
class Base(object):
__child_class__ = []
class ChildA(Base): pass
class ChildB(Base): pass
What I need to do for the interpreter to automatically fill the argument __child_class__
by all the child class so I can have this result
Base.__child_class__ = [ChildA, ChildB]
Do I need the metaclass
for this?