Extending Python

Magnus Lycka lycka at carmen.se
Thu Oct 6 08:24:19 EDT 2005


Tuvas wrote:
> I am looking for a good tutorial on how to extend python with C code. I
> have an application built in C that I need to be able to use in Python.
> I have searched through various sources, starting of course with the
> Python site itself, and others, but I felt a bit lacking from the
> Python site, it seems it was only made for those who installed the
> source distribution, as for the other people... Anyways, thanks for the
> help!

There are several options. Besides the manual way described in the
Python docs and SWIG that Miki mentioned, there is for instance the
option of using Pyrex. See http://ldots.org/pyrex-guide/ and
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/



More information about the Python-list mailing list