title: Copy-paste into Python interactive interpreter and indentation
body: <p>This piece of code, file <em>test.py</em>,</p>
  
  <pre><code>if 1:
     print "foo"
  print "bar"
  </code></pre>
  
  <p>can be successfully executed with <code>execfile("test.py")</code> or <code>python test.py</code>, but when one tries to copy-paste it into a Python interpreter:</p>
  
  <pre><code>File "&lt;stdin&gt;", line 3
  print "bar"
          ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Why is it so? Can the interpreter by configured in such a way that it would read copy-pasted text successfully?</p>
  
  <p>I guess that may affect typing in the interpreter, but that's OK for me.</p>