96 |
* This is a new reference that needs to be Py_DECREF'd when done. |
* This is a new reference that needs to be Py_DECREF'd when done. |
97 |
* @param statement Python code to execute. |
* @param statement Python code to execute. |
98 |
* @param start one of Py_eval_input, Py_file_input or Py_single_input |
* @param start one of Py_eval_input, Py_file_input or Py_single_input |
99 |
|
* @param globals the global dictionary for the Python interpreter. |
100 |
* @return \b result on success, \b NULL otherwise. |
* @return \b result on success, \b NULL otherwise. |
101 |
*/ |
*/ |
102 |
PyObject* run_string (const std::string & statement, const int & start = Py_eval_input); |
PyObject* run_string (const std::string & statement, const int & start = Py_eval_input, PyObject *globals = NULL); |
103 |
|
|
104 |
/** |
/** |
105 |
* Execute a python statement and return success. |
* Execute a python statement and return success. |