Python:C++ interfacing. Tool selection recommendations
Jorgen Grahn
jgrahn-nntq at algonet.se
Sat Sep 17 16:19:21 EDT 2005
On Fri, 16 Sep 2005 12:04:40 -0400, Neal Becker <ndbecker2 at gmail.com> wrote:
> adsheehan at eircom.net 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.
>
> boost::python is alien technology. It is amazingly powerful. Once you
> learn how to use it it's wonderful, but unless you are comfortable with
> modern c++ you may find the learning curve steep.
That last part sounds like a good thing -- if the OP dealing with C++ code,
he should be, or become, comfortable with modern C++.
In my other life as a C++ programmer, I'm thoroughly fed up with people who
keep writing 1980s-style C++ ...
(I wonder, by the way, if it's a good idea to provide a very rich interface
between an application and embedded Python. I have no experience in the
area, but intuition tells me that simplicity and minimalism is important.
How well has this worked out in past projects?)
/Jorgen
--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
More information about the Python-list
mailing list