On Wed, Dec 22, 2010 at 11:38 AM, Doug Winter <[email protected]> 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: [email protected] work: [email protected] twitter: @rlotun _______________________________________________ python-uk mailing list [email protected] http://mail.python.org/mailman/listinfo/python-uk
