Simon Willison’s Weblog

Subscribe
Atom feed for yield

1 item tagged “yield”

2009

Twisted inlineCallbacks and deferredGenerator. inlineCallbacks are a brilliant (but seemingly under-promoted) feature of Twisted which use the ability to return a value from a yield statement to make asynchronous callbacks look much more like regular sequential programming.

# 25th October 2009, 11:30 pm / async, callbacks, generators, python, twisted, yield