[Twisted-Python] callback style question

Itamar Shtull-Trauring itamar at itamarst.org
Fri Jun 13 17:24:18 EDT 2003

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

More information about the Twisted-Python mailing list