C Structure rebuild with ctypes
nobody at nowhere.org
Tue Dec 22 07:57:13 CET 2009
many thanks for your valuable help.
>>> # numVars contains size of returned arrays. Recast to access.
>>> varNamesArray = c.cast(varNames,c.POINTER(PCHAR * numVars.value))
>>> varTypesArray = c.cast(varTypes,c.POINTER(INT * numVars.value))
One last question: You created an object varNamesArray as an ctypes array.
This object has a method "contents". How do I find out what other methods
this objects has? For instance a method to retrieve the size of the array?
Is this documented somewhere?
More information about the Python-list