title: "Undefined variable : main" in pydev/python
body: <p>I made a file named "Main" in pydev and inside it wrote:</p>
  
  <pre><code>if  __name__ =='__Main__':
      main()
  
  def main():
      print("jargon")    
  </code></pre>
  
  <p>It says my call to main() under the if statement contains an undefined variable and won't compile. Why does it do this?</p>