Hi Experts,
Not sure , I am contacting the right alias for some clarifications on python.
Am beginer and looking for your comments/suggestions on implementing call backs
in python.
I have the following sample code, where I am trying to execute "hello" using
callbacks,but its not printing t
You should "call" the function used as argument in "temp" (named val), just
if you're calling directly "hello". This way:
def hello():
print 'hello'
return
def temp(val):
val() # Note the brackets, as you're executing the function
return
temp(hello)
I think this is what you are tryi
Hello,
On Apr/08/2010, anish thomas wrote:
> def hello():
>print 'hello'
>return
>
> def temp(val):
>val
you need val(), to call the function
--
Carles Pina i Estany
http://pinux.info
___
python-uk mailing list
python-uk@python.