how to wrap c++ software to python?
Toby J Sargeant
tjs at cs.monash.edu.au
Tue Apr 25 07:52:21 EDT 2000
On Tue, Apr 25, 2000 at 03:09:17PM +0800, fmr wrote:
> I will call c++ routine in python,how to wrap
> c++ routine for python.
>
> Is there any utils to work except SWIG.
sip, (http://www.river-bank.demon.co.uk/software) is very good. it will take
a c++ header (with a few modifications), and it will spit out a python module
that will provide a python type that mimics the c++ class. it also handles
(single) inheritance, which is a big win.
It's used as the basis of the PyQT bindings, which are also of a very high
standard.
Toby.
More information about the Python-list
mailing list