Re: Calling python functions from C

2006-05-10 Thread abhijitng
Thanks Farshid, Thats helps me alot ! R. Farshid Lashkari wrote: > [EMAIL PROTECTED] wrote: > > I want to call add from C. Could anybody please help me? > > Look at the "Pure Embedding" section of the python documentation. It > contains an example program that does exactly what you want. Here i

Re: Calling python functions from C

2006-05-10 Thread abhijitng
Thanks Ronny, R. Ronny Mandal wrote: > On 9 May 2006 10:05:48 -0700, [EMAIL PROTECTED] 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) > >