Re: opaque types, constructors, assignment - help please
Jose Nazario <[email protected]> Thu, 25 Feb 2010 15:05:53 -0500 (EST)
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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/