[Twisted-Python] chaining deferreds

Andy Hird andyhird at gmail.com
Thu Jun 19 02:39:06 EDT 2008

Hi all,

I've been trying to get a really basic example of chaining deferreds going
with no luck. I was hoping someone could give me some help and tell me where
I'm going wrong.

I've attached the basic code to this message.

I'd expect output to be:

constructed deferred
setup everything
printing:  hello mr
doing something else: printed something
finishing up with: done something else

But instead the callback chain stops after print_something() has been called
(do_something inbetween and finish_up are never called).

Thanks for any help in advance!

Andy Hird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080619/67d03bbe/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tw2.py
Type: text/x-python
Size: 639 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20080619/67d03bbe/attachment.py 

More information about the Twisted-Python mailing list