C Structure rebuild with ctypes
Georg
nobody at nowhere.org
Tue Dec 22 01:57:13 EST 2009
Hi Mark,
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?
Best regards
Georg
More information about the Python-list
mailing list