Re: threading: getting latest elements from list/dict

2008-05-05 Thread Gabriel Genellina
En Mon, 05 May 2008 08:26:45 -0300, Vaibhav.bhawsar <[EMAIL PROTECTED]> escribió: Hello I have a thread updating a dictionary with new elements. How can I check for new elements as they are inserted into the dictionary by the thread? In general is it safe to read a dictionary or a list whil

threading: getting latest elements from list/dict

2008-05-05 Thread Vaibhav.bhawsar
Hello I have a thread updating a dictionary with new elements. How can I check for new elements as they are inserted into the dictionary by the thread? In general is it safe to read a dictionary or a list while it is being updated by a running thread? Does the dictionary or list have to be locked w