Python 3.6 I import mylib.so, a C shared library. In this lib is a structure, mystruct, with three elements, {int a, float b, and uint8_t c}. I can import this structure into Python3. The structure is filled by calls to functions in the library. type of struct_p is
Question: How do I access the contents of the structure in Python?
from ctypes import *
mylib = CDLL('/home/tomdean/mylib.so')
from mylib import ( mylib,p_mystruct )
struct_p = p_mystruct(None)
rc = mylib.fills(struct_p)
print(type(struct_p))