Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12997 > unrolled thread

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

Started byJack Bates <jack.bates@gmail.com>
First post2011-09-08 20:18 -0700
Last post2011-09-08 20:18 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  buffer() as argument to ctypes function which expects c_void_p? Jack Bates <jack.bates@gmail.com> - 2011-09-08 20:18 -0700

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

FromJack Bates <jack.bates@gmail.com>
Date2011-09-08 20:18 -0700
Subjectbuffer() as argument to ctypes function which expects c_void_p?
Message-ID<mailman.894.1315538338.27778.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web