class A(object):
    class B(object):
        def __getitem__(self, key):
            # Obviously not the same self here...
            x = self.function_A_needs_as_well(key)  
    def function_A_needs_as_well(self, value):
        pass
I hope the example is not too bad and at least somewhat self-explaining. Can someone tell me how to call "function_A_needs_as_well" from inside "class B"?
 
     
     
     
    