How to get attributes from parent?
<p>Let's say we have these classes:</p>

<pre><code>class Foo(object):
    _bar = ""

    def __init__(self):
        self.bar = "hello"

    def getBar(self):
        return self._bar

    def setBar(self, bar):
        self._bar = bar

    def getAttributes(self):
        for attr in self.__dict__:
            print attr

    bar = property(getBar, setBar)

class Child(Foo):

    def __init__(self):
        super(Child, self).__init__()
        self.a = ""
        self.b = ""
</code></pre>

<p>if I do something like:</p>

<pre><code>child = Child()
child.getAttributes()
</code></pre>

<p>I get all the attributes from parent and child. How could I get the attributes only from the parent?</p>

<p>Thanks in advance!</p>
