title: Python: Using properties of an outer class
body: <p>I have some code that looks like this:</p>
  
  <pre><code>class Log(object):
      @property
      def log(self):
          return self.log
  
  class ExampleClass2(ExampleClass, Log):
      class ExampleClass3(object):
          @property
          def log_value(self):
              self.log.info('Hi!')
  </code></pre>
  
  <p>However I'm getting an error,</p>
  
  <pre><code>'ExampleClass3' object has not attribute 'log'
  </code></pre>
  
  <p>I'm guessing I need to add an <code>__init__()</code> method to DEF, and I've tried using </p>
  
  <pre><code>super(ExampleClass2.ExampleClass3, self).__init__()
  </code></pre>
  
  <p>but I'm still having problems accessing <code>log</code>. Any suggestions? </p>