title: Remove object from a list of objects in python
body: <p>In Python, how can I remove an object from a list of objects? Like this:</p>
  <pre><code>x = object()
  y = object()
  array = [x, y]
  # Remove x
  </code></pre>
  <p>I've tried <code>array.remove()</code> but it only works with a value, not a specific location in the array. I need to be able to delete the object by addressing its position (<code>remove array[0]</code>).</p>