EMBEDDING > Run Python & Run C Function
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sat Jun 23 00:15:42 EDT 2007
En Fri, 22 Jun 2007 12:09:40 -0300, <anonymisiert85 at mymail.ch> escribió:
> At the moment i can run python-string-code from C (MinGW, WinXP)
>
> But how can i register a C-function in python-RUNTIME and call this C
> function from python - without wrapper dll's or libs???
You can use ctypes:
http://www.python.org/doc/lib/module-ctypes.html
--
Gabriel Genellina
More information about the Python-list
mailing list