Combining C and Python programs

Hendrik van Rooyen hendrik at microcorp.co.za
Sat Aug 29 04:24:52 EDT 2009


On Saturday 29 August 2009 09:54:15 Sortie wrote:
> I want to write a program that will use ode for the physics
> simulation, whose python bindings are outdated. So I'm writing
> the physics engine in C and want to write the drawing code in
> Python. What will be the best way of making those two programs
> work together? THe physics engine won't have to run concurrently
> with the drawing code. It will only return some position data so
> they can be drawn.

Have you looked at ctypes?

- Hendrik



More information about the Python-list mailing list