I would like to give a daughter class some extra attributes without having to explicitly call a new method. So is there a way of giving the inherited class an __init__ type method which does not override the __init__ method of the parent class?
I have written the code below purely to illustrate my question (hence the poor naming of attributes etc).
self.attr1 = 'one'
self.attr2 = 'two'
self.attr3 = 'three'
print 'the method'
a = inheritedclass()
for each in a.__dict__:
#I would like the output to be: