title: Mac Terminal Printing Contents of Python Files, AND Executing
body: <p>I have a weird problem here. I've got a macbook that I'm trying to run a python script on. The script contains only the following lines:</p>
  
  <pre><code>#test
  print "hello, world"
  #test
  #test
  </code></pre>
  
  <p>Anytime I execute <em>python myfile.py</em> I get the following output:</p>
  
  <pre><code>hello, world
  
  #test
  print "hello, world"
  #test
  #test
  </code></pre>
  
  <p>It's the strangest thing, it seems to be printing the hello world , but also printing the entire contents of the file including the hello world statement. I can run this on my linux box just fine, but this mac seems to have other plans. Python is installed, and when I enter the python shell I can type print commands that run just fine without this funny business.</p>