[Twisted-Python] Re: Waiting on a Deferred

Don Dwiggins ddwiggins at advpubtech.com
Wed Jul 23 13:35:47 EDT 2008

Jean-Paul Calderone wrote:
> You don't need to "call asynchronous methods synchronously" to do this.
> twisted.web.xmlrpc.XMLRPC.xmlrpc_* methods can return Deferreds.  If they
> do, the response to the browser is delayed until the result of the Deferred
> is available.

So "return defer.succeed(...)" in an xmlrpc_* method is harmless, but 
unnecessary when "..." is immediately available?

Don Dwiggins
Advanced Publishing Technology

More information about the Twisted-Python mailing list