[Twisted-Python] deferred list behaviour

Are the results of a deferred list guaranteed to be in the same order as the list of deferreds that was given to it? i.e. if I pass [d1, d2, d3] to a deferred list and the results list in the call back has [(True, (something,)), (False, (something,)), (True, (something))] is it guaranteed that items 0, 1, and 2 in each list correspond to each other? ~ Nathan

On 05:17 pm, nathan.stocks@gmail.com wrote:
Are the results of a deferred list guaranteed to be in the same order as the list of deferreds that was given to it?
i.e. if I pass [d1, d2, d3] to a deferred list and the results list in the call back has [(True, (something,)), (False, (something,)), (True, (something))] is it guaranteed that items 0, 1, and 2 in each list correspond to each other?
Yep. Jean-Paul

On Tue, Dec 15, 2009 at 10:34 AM, <exarkun@twistedmatrix.com> wrote:
On 05:17 pm, nathan.stocks@gmail.com wrote:
Are the results of a deferred list guaranteed to be in the same order as the list of deferreds that was given to it?
i.e. if I pass [d1, d2, d3] to a deferred list and the results list in the call back has [(True, (something,)), (False, (something,)), (True, (something))] is it guaranteed that items 0, 1, and 2 in each list correspond to each other?
Yep.
Perfect, that's what I thought. ~ Nathan
participants (2)
-
exarkun@twistedmatrix.com
-
Nathan