ctypes - swig - pointer
geonomica at gmail.com
Mon Jun 30 19:35:20 CEST 2008
On 30 Giu, 18:26, Jean-Paul Calderone <exar... at divmod.com> wrote:
> On Mon, 30 Jun 2008 09:13:42 -0700 (PDT), gianluca <geonom... at gmail.com> wrote:
> >I've a problem with dll function colled with python/ctypes. My
> >functions (C) requred a typedef int "value_type" in tree different
> >same as value_type; - mydll.foo1(value_type)
> >same as *value_type; - mydll.foo2(*value_type)
> >same as **value_type; - mydll.foo3(**value_type)
> >How can pass it in python. If i do that:
> POINTER takes a class and returns a new class which represents a pointer
> to input class.
> pointer takes an instance and returns a new object which represents a
> pointer to that instance.
if I write this:
could be correct but python say me:
TypeError: _type_ must have storage info
what does mean?
More information about the Python-list