This is not acceptable for Deferral. Instead, try using reactor.callLater:
from twisted.internet import reactor
def loopPrinting():
print chr(random.randint(97, 122))
reactor.callLater(1.0, loopPrinting)
loopPrinting()
reactor.run()
Or twisted.internet.task.LoopingCall:
from twisted.internet import task, reactor
def loopPrinting():
print chr(random.randint(97, 122))
loop = task.LoopingCall(loopPrinting)
loop.start(1.0)
reactor.run()
. -, , . ( a) ( b) -, "". b , a . , a b , .
-, , , . . . , , d.addCallback(loopPrinting). , .