class super: def hello(self): self.data = 'spam' # in self.__dict__ class sub(super): def howdy(self): pass