Istvan Albert <[EMAIL PROTECTED]> wrote:

> Stéphane Ninin wrote:
> 
> > Is a lock required in such a case ?
> 
> I believe that assignment is atomic and would not need a lock.

Wrong, alas: each assignment *could* cause the dictionary's internal
structures to be reorganized (rehashed) and impact another assignment
(or even 'get'-access).


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

Reply via email to