[Pyrex] need help getting started

horace horace3d at gmail.com
Fri Nov 18 08:31:23 CET 2005


>
>
> > the first problem is i have no idea how to ignore the memory management
> > callbacks. i don't need them so i tried to define incomplete types and
> pass
> > NULL but this doesn't work.
>
> Write your own cdef callbacks and use them instead of NULL.
>
> >
> > the second problem is i don't know how to pass the NewtonWorld pointer
> > around between python and pyrex?
>
> Either use a PythonCObject, or (better) set it as a cdef attribute of a
> cdef extension class.


ok, thanks! i will experiment with your suggestions.

(by the way, this looks like a fun project! and have you seen pyODE ?)


yes, i know pyODE! i think newton is more powerful and easier to use though
so i would like to have pynewton! :)

horace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20051118/0039a9da/attachment.html


More information about the Pyrex mailing list