[Twisted-Python] DeferredList.addDeferred behaviour
RITA Y/O RODRIGO DIAZ Y/O BENENSON
rdrb at 123.cl
Wed Feb 18 17:37:53 MST 2004
I have been playing with DeferredList if found that his behaviour was not what I expected,
>>> dfl = DeferredList([])
>>> print dfl.called
True
>>> dfl.addDeferred(d)
>>> d.called
0
>>> print dfl.called
True
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 ?
rodrigob.
More information about the Twisted-Python
mailing list