Python:C++ interfacing. Tool selection recommendations

Diez B. Roggisch deets at
Fri Sep 16 16:43:04 CEST 2005

adsheehan at wrote:
> Hi,
> I am embedding Python with a C++ app and need to provide the Python
> world with access to objects & data with the C++ world.
> I am aware or SWIG, BOOST, SIP. Are there more?
> I welcome comments of the pros/cons of each and recommendations on when
> it appropriate to select one over the others.

SWIG is rather primitive - to get OO-Style Objects, you need to create 
python wrappers yourself, that have an object-reference and call all 
generated wrapper functions with that as fisrt argument. SIP is way more 
elegant in thast respect. I never tried boost.


More information about the Python-list mailing list