Wrapping a C library in Python

Craig Ringer craig at postnewspapers.com.au
Mon Nov 22 12:22:02 EST 2004


On Tue, 2004-11-23 at 00:33, Roger Binns wrote:

> In many cases Swig can parse your header files and build the
> correct wrapper.  The huge advantage of Swig is that you can
> use it to generate wrappers for a large number of languages.
> That comes in really helpful if you will also need wrappers for
> Java, TCL etc.

Just out of interest, do you know if SWIG can be used to generate an
extension module to provide interfaces to the API of an application that
embeds a Python interpreter?

(Still trying to get Py_NewInterpreter / Py_EndInterpreter to work in a
single-threaded app)

--
Craig Ringer




More information about the Python-list mailing list