title: Initialize a list of objects in Python
body: <p>I'm a  looking to initialize an array/list of objects that are not empty -- the class constructor generates data. In C++ and Java I would do something like this:</p>
  
  <pre><code>Object lst = new Object[100];
  </code></pre>
  
  <p>I've dug around, but is there a Pythonic way to get this done?</p>
  
  <p>This doesn't work like I thought it would (I get 100 references to the same object):</p>
  
  <pre><code>lst = [Object()]*100
  </code></pre>
  
  <p>But this seems to work in the way I want:</p>
  
  <pre><code>lst = [Object() for i in range(100)]
  </code></pre>
  
  <p>List comprehension seems (intellectually) like "a lot" of work for something that's so simple in Java.</p>