aahz at pythoncraft.com
Sat Nov 25 17:19:56 CET 2006
In article <12mgkd6e5cp5l16 at corp.supernews.com>,
Grant Edwards <grante at visi.com> wrote:
>Re-binding a name is always an atomic operation. Modifying
>many mutable objects is atomic.
You know this, but just to make clear: rebinding attributes of an object
(which are also sometimes called names) is not necessarily an atomic
operation. Moreover, only a plain rebinding operation is atomic;
augmented assignment is frequently not atomic.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles: boring syntax, unsurprising semantics,
few automatic coercions, etc etc. But that's one of the things I like
about it." --Tim Peters on Python, 16 Sep 1993
More information about the Python-list