c++ - Handles and pointer to object -


I have a Python interpreter that is written in C ++, to return a handle to the PyRun_String function from Python API , Though I assigned the code to the pointer on PyObject ?

  PyObject * presult = PyRun_String (code, parse_mode, dict, dict);  

Is this really correct? Can you put this handle on this object pointer?

Should not it be handled instead?

The word "handle" in the API document is usually used to type handle Not specifically referred to, but it is of any kind to be opaque for the user.

PyRun_String Specifically PyObject * returns, no one is inserted.


Comments