Here is my program structure:
class parent(object):
def __init__(self): pass
def __post_init_stuff(self):
#post initialization stuff
class child(parent):
def __init__(self):
#dostuff
self.__post_init_stuff()
def otherfunc(classname, args):
classname(args)
otherfunc(child)
The problem that I'm having is that when otherstuff(child)
executes, I get this error:
AttributeError: 'child' object has no attribute '_child__post_init_stuff'
Any advice?
otherstuff
– kindall 19 hours ago