extracting null pointer address from PyCObject with ctypes

Gordon Allott gordallott at gmail.com
Sat Oct 11 15:39:53 EDT 2008


Aaron "Castironpi" Brady wrote:
>>>> ctypes.pythonapi.PyCObject_AsVoidPtr.restype
> <class 'ctypes.c_long'>
>>>> ctypes.pythonapi.PyCObject_AsVoidPtr.argtypes
>>>>

thank you so much, this works perfectly :)


-- 
Gord Allott (gordallott at gmail.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20081011/cdd06561/attachment-0001.sig>


More information about the Python-list mailing list