[Tutor] 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

Re: [Tutor] threading: getting latest elements from list/dict

2008-05-05 Thread bob gailer
Vaibhav.bhawsar wrote: 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