My Object pool isnt working

Nagy László Zsolt nagylzs at freemail.hu
Fri Apr 4 13:58:01 EST 2003


>>Hashtables in Java are thread safe, but I'm not sure if the built in
>>dict type in python is.
>>    
>>
>
>It is.
>  
>
Whew! I always thought that I must use locks to access any object in 
Python before I modify it from a thread.
Is it possible to append a list or a dictionary from a thread without 
locking it? What does thread-safe mean here?
For example, what would happen if I walk through a list in a for loop 
while another thread modifies the list?
Thank you in advance.

  Laci

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030404/ad60edbd/attachment.html>


More information about the Python-list mailing list