"J Rice" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > My apologizes, I missed the newish FAQ entry on this. The addrbl() > method looks like this: > > def addRBL(self, testname, result, info=""): > self.testresultsRBL[testname] = result, info > > So according to the FAQ, D[x] = y, where D is a dictionary, is atomic > and therefore thread-safe. Right?
I believe an alternative, mentioned elsewhere by Tim Peters, is for workers to send results (here (testname,result,info) ) back in a results queue read by the main thread. tjr tjr -- http://mail.python.org/mailman/listinfo/python-list