[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:
http://www.darkarts.co.za/repository/tada/doc/examples/taoBasicUsage.py
(online syntax highlighted version of the same:
http://www.rafb.net/paste/results/TmpcYr74.html)

The code is part of my tada project at :
http://www.darkarts.co.za/projects/tada/

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


-- 
Clive Crous
http://www.darkarts.co.za/






More information about the Twisted-Python mailing list