lists, performance..

Aahz aahz at pythoncraft.com
Thu Oct 31 12:28:03 EST 2002


In article <mailman.1036082436.18279.python-list at python.org>,
gabor  <gabor at realtime.sk> wrote:
>
>i wanted to deep-copy because the created big list will be used in a
>different thread than the small ones... so i thouhgt let's have it as
>safe as it can be...

That's a tricky question.  If you eventually want to reflect the changes
in the big last back to the smaller lists, you may be better off doing
locking instead of copying.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list