buffer() as argument to ctypes function which expects c_void_p?

Jack Bates jack.bates at gmail.com
Thu Sep 8 23:18:54 EDT 2011


How do you pass a Python buffer() value as an argument to a ctypes
function, which expects a c_void_p argument? I keep getting TypeError:

ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type



More information about the Python-list mailing list