[Twisted-Python] inlineCallbacksDecorator

2009-06-06 Thread Terry Jones
I try to avoid using inlineCallbacks. There are two cases where I will happily use it though: when I write a method that would need more than a few callback functions, and, more importantly, when the logical flow of a method is non-trivial (i.e., it depends on the returned values or errors of sever

[Twisted-Python] Weekly Bug Summary

2009-06-06 Thread exarkun
Bug summary __ Summary for 2009-05-31 through 2009-06-07 Bugs opened: 10Bugs closed: 2 Total open bugs: 1121 (+8) |== Type Changes |== Priority Changes |== Component Changes |Defect: +4 |Highest: +1 |Conch:+3 |Enhancement: +3 |No

Re: [Twisted-Python] inlineCallbacksDecorator

2009-06-06 Thread Maarten ter Huurne
On Sunday 07 June 2009, Terry Jones wrote: > So I wrote a decorator specifically for inlineCallbacks decorated > functions: > > from twisted.internet import defer > > def inlineCallbacksDecorator(callback, errback=defer.passthru): > def wrap(f): > def wrapper(*args, **k