I'm working with classes that have a lot of instance variables, and I want to have classes that inherit every instance variables from them. something like this:
class foo(object):
    def __init__(self,thing1,thing2,thing3,thing4,thing5,thingetc):
        self.1 = thing1
        self.2 = thing2
        self.3 = thing3
        self.4 = thing4
        self.5 = thing5
        self.etc = thingetc
class bar(foo):
    self.6 = []
a = bar
print a.3
obviously this won't work, but all the documentation that I can find on line is confusing. How do you inherit variables in cases like this?



a = bar(), thena.threeis certainly inherited fromfooiffoodefinesself.three.