On Sun, 14 Jul 2002 14:41:18 +1000, Andrew Bennetts <andrew-twisted@puzzling.org> wrote:
- add a flag to the current DeferredList so it can do either behaviour? As I said above, the behavior is really different; the types of the signatures for your callbacks will be different. That says "different class" to me.
Would it be so bad to be able to do this: dl = DeferredList([d1, d2, ...], fireOnOneCallback=1, fireOnOneErrback=1)
This way we can get all four variations for free, without having to think of distinct and non-confusing names for them. Of course, "fireOnOneCallback" is a pretty ugly name for a keyword argument.
On second thought, you're right -- I like the way that exact signature looks. :-). Go ahead and implement it. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |