[Tutor] Calling C code in a python program

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Thu, 27 Jul 2000 17:27:09 +0300 (IDT)

On Thu, 27 Jul 2000, Catriona Johnston wrote:

> Hello all,
> 	I have just started using python for science a week ago and need to
> know how to integrate a previously written program in C into my python
> interface...There must be a quicker method other than SWIG or the API
> methods that involves going into the C program and altering all definitions
> to include API definitions...please tell me there is! I do not need to
> implement separate parts of the C program individually all I need to do is
> call it, feed it its input and capture its output. 
> Awaiting your comment

Try os.popen or os.popen2.
Moshe Zadka <moshez@math.huji.ac.il>
There is no IGLU cabal.