[Pyrex] Cannot cdef __init__?

Andrew Bennetts andrew-pyrex at puzzling.org
Mon Jan 19 13:42:57 CET 2004


On Mon, Jan 19, 2004 at 11:35:36PM +1100, Simon Burton wrote:
> On Mon, 19 Jan 2004 22:10:40 +1100
> Andrew Bennetts <andrew-pyrex at puzzling.org> wrote:
> 
> ...
> > If I wrote a patch to allow Pyrex to support this, would it be likely to be
> > accepted?  I'm surprised that no-one else has done this already (which makes
> > me wonder if I'm still somehow just not "getting it").
> 
> 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.

Ok, I'll see how I go.  The Pyrex source looks fairly clean, so hopefully I
can figure out how to do it.  No guarantees on how long it will take me,
though :)

-Andrew.





More information about the Pyrex mailing list