[Pyrex] opaque types, constructors, assignment - help please
Jose Nazario
jose at monkey.org
Thu Feb 25 21:05:53 CET 2010
On Thu, 25 Feb 2010, P?ter Szab? wrote:
> cdef extern from "../src/capi.h":
> struct FastBitQueryHandle:
> pass
>
> Or this:
>
> cdef extern from "../src/capi.h":
> struct FastBitQueryHandle_struct "FastBitQueryHandle":
> pass
> ctypedef FastBitQueryHandle_struct FastBitQueryHandle
>
> To better understand what happens, diff the .c files generated by the
> various methods.
in both cases the .c is never generated, same error:
Cannot convert 'FastBitQueryHandle' to Python object
(this references the Query object constructor, which calls a function
which returns a FastBitQueryHandle).
no joy, in short.
________
jose nazario, ph.d. http://monkey.org/~jose/
More information about the Pyrex
mailing list