Calling python functions from C

abhijitng at gmail.com abhijitng at gmail.com
Wed May 10 12:32:58 EDT 2006


Thanks Ronny,

R.

Ronny Mandal wrote:
> On 9 May 2006 10:05:48 -0700, robert.differentone at gmail.com wrote:
>
> >I am a newbie to Python. I want to call python functions from C. I
> >looked for examples but I couldn't get any simple one. Lets say my
> >python code is :
> >def add(a,b)
> >     return (a+b)
> >
> >I want to call add from C. Could anybody please help me? Thanks in
> >advance.
> This is also known as "callback".
>
> Check out
> http://www.google.com/search?client=opera&rls=en&q=python+c+callback&sourceid=opera&ie=utf-8&oe=utf-8
> or
> http://www.python.org/doc/current/ext/ext.html
> 
> -RM
> >
> >R.




More information about the Python-list mailing list