How do I get more informative Python syntax errors
<p>I am teaching someone Python. This person executed below </p>

<pre><code>if 2 == 2
    print 'hi'
</code></pre>

<p>which gave</p>

<pre><code>    if 2 == 2
            ^
SyntaxError: invalid syntax
</code></pre>

<p>Is there a way to get Python to say <code>missing : at end of if statement</code>?</p>