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

Jack Bates jack.bates at gmail.com
Fri Sep 9 05:18:54 CEST 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