On 03/25/2012 05:02 PM, Laurens Van Houtven wrote:
> Hi,
>
>
> I'm trying to find out if there's a reasonable way to mimic a blocking 
> API with an existing non-blocking API. I want to do this so I can 
> write doctests.
>
> For example, I want to make a remote AMP call. It returns a deferred. 
> Instead of returning a deferred, I want it to block until the deferred 
> fires.
Doctests are supposed to document and test, or perhaps have tested 
documentation. If the API you're presenting doesn't match actual usage, 
that's bad documentation...

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to