Python oop question
<p>How do I call method <code>.get_item(Example1()).do_something()</code> in class <code>Base</code> from inside the class <code>Example2</code>?</p>

<pre><code>class Base:

    items = []

    def add_item(self, item):
        self.items.append(item)

    def get_item(self, item):
        return self.items[0]

class Item:
    pass

class Example1(Item):

    def do_something(self):
        print('do_something()')

class Example2(Item):

    def __init__(self):
        '''
        How call this method .get_item(Example1()).do_something() ?
        '''

if __name__ == '__main__':

    base = Base()
    base.add_item(Example1())
    base.add_item(Example2())
</code></pre>
