title: python finding index of an array within a list
body: <p>What I have is a list where the elements are an array like this:</p>
  
  <pre><code>([1,2,3],[4,5,6],[7,8,9])
  </code></pre>
  
  <p>What I want is to find the index of an element in this list, something like:</p>
  
  <pre><code>list.index([4,5,6]) #should return 1.
  </code></pre>
  
  <p>Problem is <code>numpy</code> array comparison throws up errors unless you put something like: <code>(A==B).all()</code></p>
  
  <p>But this comparison is <em>inside</em> the index function so i can't and don't really want to add the <code>all()</code> bit to the function. Is there an easier solution to this?</p>