title: How to access a local object inside a class method in a module?
body: <p>I was trying to access a local variable inside of a class that is in a module.
  So Far I can only access it while doing the call inside the module itself and not as a import.</p>
  
  <p>this is my only successfull attempt to retrieve "coisa". is there a easyer way to call it?</p>
  
  <pre><code>class Hello():
      def MyObject():
          coisa = 22
          return coisa
  
  link = Hello.MyObject()
  print(link)
  </code></pre>
  
  <p>But this is the situation I am trying to actually overcome. Importing a module and access a object inside it class and function.
  Main.py</p>
  
  <pre><code>import Module
  
  link = Module.Hello.MyObject()
  print(link)
  </code></pre>
  
  <p>Module.py</p>
  
  <pre><code>coisa = "67"
  class Hello():
      def MyObject():
          coisa = "22"
          return coisa
  </code></pre>