[Twisted-Python] How to force synchronous behavior

Clive Crous clive at darkarts.co.za
Sat Oct 29 16:12:26 EDT 2005

#>> I want to encapsulate deferreds into a function that looks like
#>> synchronous when invoked.

I use a similar mechanism in my database wrapper module.

here is an example of it in use:
(online syntax highlighted version of the same:

The code is part of my tada project at :

I agree, callbacks are ugly, python 2.5 will be great :D

Clive Crous

More information about the Twisted-Python mailing list