title: Failed to catch syntax error python
body: <pre><code>try:
      x===x
  except SyntaxError:
      print "You cannot do that"
  </code></pre>
  
  <p>outputs</p>
  
  <pre><code>    x===x
         ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>this does not catch it either</p>
  
  <pre><code>try:
      x===x
  except:
      print "You cannot do that"
  </code></pre>
  
  <p>Other errors like NameError, ValueError, are catchable. </p>
  
  <p>Thoughts?</p>
  
  <p>System specs:</p>
  
  <pre><code>import sys
  print(sys.version)
  </code></pre>
  
  <p>->
  2.7.5 (default, Mar  9 2014, 22:15:05) 
  [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]</p>