On 29/01/10 Tristan Seligmann said: > Just to expand on exarkun's answer a little, it might help to > understand that addCallback and addErrback are simply implemented in > terms of addCallbacks. Roughly: > > def passthru(arg): > return arg > > d.addCallback(cb) is equivalent to d.addCallbacks(cb, passthru) > > d.addErrback(eb) is equivalent to d.addCallbacks(passthru, eb)
I think I understand now. I don't think it's adequately explained here http://twistedmatrix.com/documents/current/core/howto/defer.html but the diagram makes more sense now. Thanks, Mike -- Michael P. Soulier <msoul...@digitaltorque.ca> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein
signature.asc
Description: Digital signature
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python