Compare if two variables reference the same object in python
<p>Very quick question.</p>

<p>How to check whether two variables reference the same object?</p>

<pre><code>x = ['a', 'b', 'c']
y = x                 # x and y reference the same object
z = ['a', 'b', 'c']   # x and z reference different objects
</code></pre>

<p>Thanks.</p>
