title: Is a variable swap guaranteed to be atomic in python?
body: <p>With reference to the following link: <a href="http://docs.python.org/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe" rel="noreferrer">http://docs.python.org/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe</a></p>
  
  <p>I wanted to know if the following:</p>
  
  <pre><code>(x, y) = (y, x)
  </code></pre>
  
  <p>will be guaranteed atomic in cPython. (x and y are both python variables)</p>