jrl-umi3218/dynamic-graph-python — pull request #1 by olivier-stasse (2012-07-23 15:30:46+00:00)
Title: Add test to detect statement in evaluation.

Dear all,
I added some mechanisms in dynamic_graph_python to increase the parser
robustness.
Would you please test it before I merge to it to the branch master ?
I intend to do this by Wednesday.

Thank you very much in advance.

Here is the commit:
This commit detect when a statement is evaluated with PyRun_String run
with Py_eval_input. This seems to generate a Syntax Error. Thus if
an exception with Syntax Error is generated with Py_eval_input,
the python interpreter does a second pass with Py_single_input.
The string err is set appropriatly, out has to be checked.