threads, mutual exclusion, and lists

Matt McCredie mccredie at gmail.com
Wed Aug 15 19:08:44 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

Matt



More information about the Python-list mailing list