The function PyObject_Call() is used to call a method on a PyObject. But how to get/read a member variable of a PyObject?
Asked
Active
Viewed 582 times
1 Answers
1
You can use PyObject_GetAttr
or PyObject_GetAttrString
function.
Also have a look at overall object protocol documentation for more info

Jan Stránský
- 1,671
- 1
- 11
- 15