Stéphane Ninin wrote:

> Is a lock required in such a case ?

I believe that assignment is atomic and would not need a lock.

yet most of the other dictionary use cases are not threadsafe. For
example I suspect that you'd get an error if you were iterating through
the dictionary while another thread inserted a value.

i.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to