Relative Content

Tag Archive for pythondynamicinfinite-loopsyntax-checking

Programmatically check syntax of a piece of python code

I want to write a python function which checks syntax of a given python code.
So it must takes a string in parameter containing the code to check, and it returns a boolean indicating whether the code is syntactically correct or not.