[Pyrex] Cannot cdef __init__?
Simon Burton
simon at arrowtheory.com
Mon Jan 19 13:35:36 CET 2004
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").
>
> Thanks for all your help,
>
> -Andrew.
>
>
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.
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box A66
ANU Canberra 2601
Australia
Ph. 02 6249 6940
http://arrowtheory.com
More information about the Pyrex
mailing list