Re: "str object is not callable" error

2009-04-12 Thread Gabriel Genellina
En Wed, 08 Apr 2009 18:11:37 -0300, venkat sanaka escribió: i was using python/c api to call a python function from c and I know the name of the function which i want to call.Is there any way to do that?? This is the method i tried... for eg:This is the python function i wants to call. >>>d

"str object is not callable" error

2009-04-08 Thread venkat sanaka
HIi everyone. i was using python/c api to call a python function from c and I know the name of the function which i want to call.Is there any way to do that?? This is the method i tried... for eg:This is the python function i wants to call. >>>def add(x): ... return x+10 This is my code i