Questions about extending Python...

Fredrik Lundh fredrik at pythonware.com
Fri Jun 9 16:18:24 EDT 2006


Redefined Horizons wrote:

> I've got a third-part application that exposes a C API. I'd like to
> wrap it in Python. Is there a specific forum that covers extending and
> embedding Python, or are those type of questions O.K. on this list?

those type of questions are perfectly okay on this list, but if you're 
using SWIG or Pyrex:

     http://www.swig.org/
     http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

(which are probably the most commonly used tools for this kind of task), 
you might get quicker/better responses on the tool-specific lists.

if you prefer to "handroll" your C wrapper, start here:

     http://docs.python.org/ext/ext.html

(to get more examples, look in the Modules directory in the Python 
distribution).

hope this helps!

</F>




More information about the Python-list mailing list