Using Python for programming algorithms

Frédéric Degraeve frederic.degraeve at gmail.com
Wed May 21 06:12:52 EDT 2008


> By the way, is it possible (and easy) to call a C function from a
> Python program??

Use SWIG. It's easy, smart and beautiful. After that, you can call C/C+
+ from a lot of scripting languages such as python, R, etc
A lot of open sources projects already use it.

http://www.swig.org/tutorial.html

Boost.Python is also very known (but never tested by myself).

Frédéric



More information about the Python-list mailing list