On 22 Oct 2005 14:12:16 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >I'm reading about "high order messages" in Ruby by Nat Pryce, and >thinking if it could be util and if so, if it could be done in Python. >Someone already tried?
Here's an example of the idea, in Python: def messageA(): print 'Message A received!' def messageB(otherMessage): print 'Message B received! Sending some other message.' otherMessage() messageB(messageA) Since this is a basic feature of Python, we usually don't call them messages. Instead, "functions" or sometimes "methods". Jp -- http://mail.python.org/mailman/listinfo/python-list