[python-uk] Tell us what you did with Python this year....

Reza Lotun rlotun at gmail.com
Wed Dec 22 12:44:29 CET 2010


On Wed, Dec 22, 2010 at 11:38 AM, Doug Winter <doug.winter at isotoma.com> wrote:
> Have you considered using the @inlineCallbacks decorator instead?  I bet
> you could make that work too, you could write your own decorator that
> uses inlineCallbacks or something synchronous, then the above becomes:
> ...

Good point - I like inlineCallbacks for certain things like tests and
initialization steps, but I try to avoid them in general because it's
too easy to write problematic code with them. I actually fleshed out
these reasons in this stackoverflow answer:
http://stackoverflow.com/questions/3894278/twisted-deferred-addcallback-vs-yield-and-inlinedeferred/3954427#3954427

Cheers,
Reza

-- 
Reza Lotun
mobile: +44 (0)7521 310 763
email:  rlotun at gmail.com
work:   reza at tweetdeck.com
twitter: @rlotun


More information about the python-uk mailing list