[Tutor] threading: getting latest elements from list/dict
Vaibhav.bhawsar
bhawsar.vaibhav at gmail.com
Mon May 5 13:12:51 CEST 2008
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 while
reading?
many questions! :)
vaibhav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080505/8292e5a8/attachment.htm>
More information about the Tutor
mailing list