[SciPy-User] Wrapping C/C++ Code

Rohit Garg rpg.314@gmail....
Tue Nov 3 09:23:03 CST 2009

The first thing to do is to expose an API from your program that your
script can access. It'll likely not be done as  it was written with
one language in mind.

After that it's your call whether you want to embed or extend the
interpreter. For extending, IMHO, SWIG is your friend.

On Tue, Nov 3, 2009 at 4:46 PM, Lorenzo Isella <lorenzo.isella@gmail.com> wrote:
> Dear All,
> I hope this is not too off-topic.
> If you were asked to wrap  C/C++ codes into a Python application
> (potentially relying on NumPy/SciPy) which route would you follow?
> Bear in mind that the initial C/C++ code is a standalone program which
> was not written having Python in mind at all.
> Many thanks
> Lorenzo
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

Rohit Garg


Senior Undergraduate
Department of Physics
Indian Institute of Technology

More information about the SciPy-User mailing list