c/python integration
Adrian Eyre
a.eyre at optichrome.com
Tue Mar 14 05:32:56 EST 2000
> right so, heres my problem,
> i have this c code (below) and i want to call the functions getname() and
> getnumber() from within the python interpreter, can anyone give
> me the code i need or tell me how to do it pls
> [snip]
You need to wrap these functions in a module so it can be 'import'ed from
Python.
The easiest way would be to read and adapt the file: Modules/xxmodule.c in
the standard Python distribution.
-----------------------------------------------------------------
Adrian Eyre <a.eyre at optichrome.com> - http://www.optichrome.com
More information about the Python-list
mailing list