Thread safetyness in Python

Jeff Epler jepler at unpythonic.net
Wed Jul 3 10:34:14 EDT 2002


On Wed, Jul 03, 2002 at 09:58:51AM -0400, Oren Tirosh wrote:
> The resolution is one bytecode operation so a+=1 is atomic but not a=a+1.
> The list operations above are atomic.

a+=1 is multiple bytecodes.

Jeff





More information about the Python-list mailing list