Please forgive me if this is an old question. I have been unable to make any
progress on this despite Google.
I have a small program:
cdef extern from *:
ctypedef struct opaque_pointer:
pass
opaque_pointer* init(char *tablename)
void finish(opaque_pointer** h)
cdef class a_class:
cdef opaque_pointer* the_handle
def __init__(table_name):
the_handle = init(table_name)
def __dealloc__(self):
finish(&self.the_handle)
On compiling it, this happens:
[EMAIL PROTECTED]:4:~/ $ cython libiptc.pyx
Error converting Pyrex file to C:
------------------------------------------------------------
...
void finish(opaque_pointer** h)
cdef class a_class:
cdef opaque_pointer* the_handle
def __init__(table_name):
the_handle = init(table_name)
^
------------------------------------------------------------
/home/nicole/firewall/libiptc.pyx:10:21: Cannot convert 'opaque_pointer *' to
Python object
[EMAIL PROTECTED]:4:~/ $
I've obviously misunderstood something, but I'm blessed if I can understand
what is going wrong.
I'm a pretty experienced programmer; picked up python in a couple of days, so
it must be a pretty
fundamental lack on my part.
I'd be grateful for any assistance you could give.
Best regards
Nicole King
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev