How can I evaluate an arbitrary Python expression from C?
Call the function PyRun_String from the previous question with the start symbol Py_eval_input; it parses an expression, evaluates it and returns its value.
CATEGORY: extending
This is an old copy of the Python FAQ. The information here may be outdated.
Call the function PyRun_String from the previous question with the start symbol Py_eval_input; it parses an expression, evaluates it and returns its value.
CATEGORY: extending
rendered by a django application. hosted by webfaction.