0

The function PyObject_Call() is used to call a method on a PyObject. But how to get/read a member variable of a PyObject?

cosas
  • 43
  • 5

1 Answers1

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