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__
__init__
As far as I know that's not possible, however you can call the init method of the superclass, like this:
class inheritedclass(initialclass): def __init__(self): initialclass.__init__(self) self.attr3 = 'three'