title: Does Python's __init__(self) method get defined by the interpreter before all other class/instance methods?
body: <p>#for example:</p>
  
  <pre><code>class example(object):
  
      def someFunction():
          print("I am some function")
  
      def __init__(self,x,y):
          self.x = x
          self.y = y
          someFunction()
  </code></pre>
  
  <p>Why does this code generate the error that someFunction is not defined?
  Is it because python's interpreter executes the def <strong>init</strong> code block before it executes the def <strong>someFunction</strong> code? I thought python's order of execution was a top down approach. Any insight would be appreciated.</p>