Wrapping a C library in Python

Benji York benji at benjiyork.com
Sun Nov 21 01:35:24 CET 2004


Roy Smith wrote:
> The problem is, I'm at a loss what to do for a slightly more complex 
> case. 

The ctypes tutorial talks about this issue: 
http://starship.python.net/crew/theller/ctypes/tutorial.html. 
Especially the section s "Passing pointers" and "Structures and Unions".

I've also used the built-in struct module for simple cases.
-- 
Benji York
benji at benjiyork.com




More information about the Python-list mailing list