Is assigning a,b = c,a the same as b,a = a,c?
<p>Is assigning </p>

<pre><code>a,b = c,a
</code></pre>

<p>the same as </p>

<pre><code>b,a = a,c
</code></pre>

<p>It seems to be the same for the simple case where <code>a</code>, <code>b</code>, and <code>c</code> are numbers.</p>

<p>Is there a case where this fails?</p>

<p>It's the same in all cases, no matter what you're working with. So long as statements are equivalent (like yours are), the result will be the same.</p>

python python-2.7