[Twisted-Python] Looping in a deffered
jjoske at nextdigital.com
Fri Sep 4 22:49:39 EDT 2009
I'm trying to make a simple deferred that will continue get a message of
a message queue, process it and then wait for another message.
While I can get the first message easily I am unable to work out how I
can get a second message without creating a new deferred in the printMsg
function, which eventually gives me a maximum recursion depth exceeded.
Basic code is a follows:
from twisted.internet import reactor,defer
print "Message is:"
def getMsg() :
#replaced with code that actually goes to a queue to get the message
msg="This is a message"
Can any one point me on the right path to solve this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python