[Twisted-Python] DeferredList.addDeferred behaviour
radix at twistedmatrix.com
Wed Feb 18 22:19:43 EST 2004
Andrew Bennetts wrote:
> On Wed, Feb 18, 2004 at 09:37:53PM -0300, RITA Y/O RODRIGO DIAZ Y/O BENENSON wrote:
>>The workaround it to first create the list of deferred instance and then
>>instanciate with it the DeferredList. But what sense does have the
>>addDeferred method then ? I this behaviour what is supposed to be ?
> It's not clear to me what the right behaviour here is -- if a DeferredList
> has some number of Deferreds that have all been called, then of course the
> DeferredList should be marked as called, too. But if you then add an
> uncalled Deferred to it, that sounds like a bug.
Similar to d.result, IMO, d.called is an "invite-only attribute", in the
words of Glyph. If you want to touch it, don't whine about its
> Can anyone offer reasons why addDeferred should stay? Donovan -- CVS says
> you added it, can you remember why? Is anyone using it?
And addDeferred looks like it should really be _addDeferred.
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040218/361605c3/attachment.pgp
More information about the Twisted-Python