[Twisted-Python] callback style question

Justin Johnson justinjohnson at fastmail.fm
Fri Jun 13 19:37:03 EDT 2003


Okay, thanks.

On Fri, 13 Jun 2003 17:24:18 -0400, "Itamar Shtull-Trauring"
<itamar at itamarst.org> said:
> On Fri, 13 Jun 2003 14:52:52 -0600
> "Justin Johnson" <justinjohnson at fastmail.fm> wrote:
> 
> > What is the difference between chaining callbacks together like you
> > did above and doing it like...
> > 
> > d.addCallback(int)
> > d.addCallback(lambda x: x*2)
> 
> It's identical. d.addCallback(f) returns d.
> 
> -- 
> Itamar Shtull-Trauring    http://itamarst.org/
> http://www.zoteca.com -- Python & Twisted consulting
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 




More information about the Twisted-Python mailing list