Gabriel Genellina wrote: >... So `callback` should return a function, like this: > > def callback(text): > def handler(event): > print text >
Even better than that:
def callback(text):
def handler(event):
print text
return handler
Otherwise callback returns the spectacularly un-useful value None.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
