threads, mutual exclusion, and lists

"Martin v. Löwis" martin at v.loewis.de
Thu Aug 16 03:06:51 EDT 2007


>> My question is -- are python list operations atomic? If they are not,
>> then I assume I need to put some mutual exclusion around the append()
>> and pop() calls ?
> 
> They are not, but there is one included in the standard library:
> http://docs.python.org/dev/lib/module-Queue.html

Why do you think they are not?

Regards,
Martin



More information about the Python-list mailing list