title: Make List of Unique Objects in Python
body: <p>It is possible to 'fill' an array in Python like so:</p>
  
  <pre><code>&gt; [0] * 10
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  </code></pre>
  
  <p>I wanted to use this sample principle to quickly create a list of similar objects:</p>
  
  <pre><code>&gt; a = [{'key': 'value'}] * 3
  &gt; a
  [{'key': 'value'}, {'key': 'value'}, {'key': 'value'}]
  </code></pre>
  
  <p>But it appears these objects are linked with one another:</p>
  
  <pre><code>&gt; a[0]['key'] = 'another value'
  &gt; a
  [{'key': 'another value'}, {'key': 'another value'}, {'key': 'another value'}]
  </code></pre>
  
  <p>Given that Python does not have a <code>clone()</code> method (it was the first thing I looked for), <strong>how would I create unique objects without the need of declaring a <code>for</code> loop and calling <code>append()</code> to add them?</strong></p>
  
  <p>Thanks!</p>