[Pyrex] Pyrex versus ctypes, again

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jul 22 14:08:26 CEST 2005


Peter Brinkmann wrote:

> Now, my main concern
> is that I don't see how to use pyrex to expose C structs and unions to
> Python. They may appear in pyrex code, but they won't be available on
> the Python side, right?

Not automatically, no. Pyrex provides what you need
to build a Pythonic interface to them, but you have
to do the building yourself.

If you want something you can just throw a bunch
of C declarations at and get a Python interface
for free, Pyrex isn't for you.

Greg




More information about the Pyrex mailing list