Checking python syntax of a string in Python?
<p>Lets say I have a string</p>

<pre><code>s="""

print 'hi'
    print 'hi'
print 3333/0
"""
</code></pre>

<p>Is there a module or way that can help me check the syntax of this string?</p>

<p>I would like the output to be like:</p>

<p>Line 2, indentation
Line 3, Division by Zero</p>

<p>I have heard of pyFlakes, pyChecker and pyLint but those check a file, not a string.</p>
