Skip to content
Snippets Groups Projects
Forked from Stack Of Tasks / dynamic-graph-python
349 commits behind the upstream repository.
  • olivier stasse's avatar
    fe0a6faf
    Add test to detect statement in evaluation. · fe0a6faf
    olivier stasse authored
    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.
    fe0a6faf
    History
    Add test to detect statement in evaluation.
    olivier stasse authored
    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.
interpreter.cc 7.35 KiB