title: Python gives "SyntaxError: invalid syntax" under Cygwin but not in CMD, after hitting "return"?
body: <p>I have used Cygwin for years and recently started using Python. I decided not to use the Cygwin provided Python (for various other issues) and installed a native Windows version. However, when running this version in the Cygwin shell it behaves a bit different than when running on the Windows Command line (CMD). The problem is that hitting "return" when in Cygwin, results in a "SyntaxError", whereas doing the same in CMD, does not. Here's what happens:</p>
  
  <p><strong>In Cygwin:</strong></p>
  
  <pre><code>$ python
  Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
    File "&lt;stdin&gt;", line 1
  
      ^
  SyntaxError: invalid syntax
  &gt;&gt;&gt; ^Z
  </code></pre>
  
  <p><strong>In (Win) CMD:</strong></p>
  
  <pre><code>Microsoft Windows [Version 6.0.6002]
  Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
  
  C:\Windows\System32&gt;python
  Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  &gt;&gt;&gt; ^Z
  </code></pre>
  
  <p>I cannot comprehend what's going on. Any ideas?</p>
  
  <p>PS. I've had python on my machine many times before (including the Cygwin native version), without any problem, but have since removed all those. I've also looked at <a href="https://stackoverflow.com/questions/4569858/python-interactive-interpreter-always-returns-invalid-syntax-on-windows">this</a> post, suggesting that it could have something to do with the character set or end-of-line character...</p>