real-time monitoring of propriety system: embedding python in C or embedding C in python?

rusi rustompmody at gmail.com
Tue Feb 5 11:14:52 EST 2013


On Feb 5, 8:10 pm, Bas <wegw... at gmail.com> wrote:
> Since all the functions I have to interface with (read and write of live data, sending
> commands, ...) are implemented in C, the solution will require writing both C and python.

Standard embedding/extending is ok when the interface is 'thin' ie the
number of functions going from the C-world to the python-world is not
large.

If you are dealing with a larger bunch of functions (as it seems you
are) you may want to look at swig:
http://www.swig.org/tutorial.html



More information about the Python-list mailing list