[Pyrex] need help getting started
Simon Burton
simon at arrowtheory.com
Fri Nov 18 08:49:49 CET 2005
On Thu, 17 Nov 2005 14:45:37 +0100
horace <horace3d at gmail.com> wrote:
>
> 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.
(by the way, this looks like a fun project! and have you seen pyODE ?)
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
More information about the Pyrex
mailing list