replace dict contents
Aahz
aahz at pythoncraft.com
Wed Jul 28 09:58:54 EDT 2004
In article <4106C4D2.2030103 at jessikat.fsnet.co.uk>,
Robin Becker <robin at SPAMREMOVEjessikat.fsnet.co.uk> wrote:
>
>The actual replace part of L1[:]=L2 happens in a single opcode and is
>therefore atomic. The same cannot be said of the .clear, .update sequence.
Why do you care about atomicity? Are you running a threaded app?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"To me vi is Zen. To use vi is to practice zen. Every command is a
koan. Profound to the user, unintelligible to the uninitiated. You
discover truth everytime you use it." --reddy at lion.austin.ibm.com
More information about the Python-list
mailing list