[Twisted-Python] Synchronous @inlineCallback interpreter
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Thu Apr 24 20:27:20 MDT 2014
On 24 Apr, 11:45 pm, clayton.daley at gmail.com wrote:
>I have a modular application that communicates over RPC connections
>(with
>both sync and async server/clients available). I want to migrate some
>of
>the modules over to Twisted. Currently, all modules inherit important
>utility functions from a parent class. On paper, I now need two
>versions
>of this parent class (synchronous & asynchronous) to be inherited by
>modules of the respective types.
You might find that replacing the subclassing with composition helps
simplify the code re-use problem.
You may also be interested in https://github.com/radix/synchronous-
deferred
Jean-Paul
More information about the Twisted-Python
mailing list