[Twisted-Python] RPC design questions
Tristan Seligmann
mithrandi at mithrandi.net
Mon Aug 22 19:48:34 MDT 2011
On Mon, Aug 22, 2011 at 11:09 PM, Tobias Oberstein
<tobias.oberstein at tavendo.de> wrote:
> self.call(<procedure>, <arg>)
> self.call("square", 6).addCallback(self.call, "sqrt").addCallback(self.show)
The easiest way to do this is probably:
from functools import partial
self.call("square", 6).addCallback(partial(self.call,
"sqrt")).addCallback(self.show)
--
mithrandi, i Ainil en-Balandor, a faer Ambar
More information about the Twisted-Python
mailing list