Home » Unlabelled » How can I evaluate an arbitrary Python expression from C? | Python
Thursday, 26 April 2012
How can I evaluate an arbitrary Python expression from C? | Python
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.
No comments:
Post a Comment