Message115001
This can be useful in those circumstances where the user wants to execute some action right after some data has been sent (push()) or a producer has been consumed (push_with_producer()).
Example:
def log(msg):
logging.debug(msg)
class Sender(asynchat.async_chat):
def __init__(self, conn):
asynchat.async_chat.__init__(self, conn)
self.set_terminator("\r\n")
self.push("220 hello\r\n")
self.push_callable(log, "hello has been sent") |
|
Date |
User |
Action |
Args |
2010-08-26 16:19:52 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, josiahcarlson, nirs, josiah.carlson, r.david.murray |
2010-08-26 16:19:52 | giampaolo.rodola | set | messageid: <1282839592.68.0.629507252463.issue9693@psf.upfronthosting.co.za> |
2010-08-26 16:19:51 | giampaolo.rodola | link | issue9693 messages |
2010-08-26 16:19:50 | giampaolo.rodola | create | |
|