[Pyrex] Cannot cdef __init__?
Paul Prescod
paul at prescod.net
Mon Jan 19 18:14:10 CET 2004
Simon Burton wrote:
> ...
>
> Yes, I'd like this aswell.
> As it stands, I use regular python classes and pass around CObjects in lieu of the real thing (a struct pointer).
> It works OK, but involves a lot of PyCObject_FromVoidPtr/PyCObject_AsVoidPtr shenanigans.
Could you specifiy the precise problem that causes you all of this
PyCObject_ stuff? AFAIK, Andrew's only issue is with initialization
functions but I wonder if you are talking about being able to pass
around C types more generally.
But your email does give me an idea: what if there was an easy way to
get Pyrex to automatically generate wrappers for struct types and
pointer types? Perhaps that would solve your problem?
Paul Prescod
More information about the Pyrex
mailing list