title: Python TypeError: 'datetime.datetime' object is not subscriptable
body: <p>I've a query inside python script which connects to the sql database and retrieves a (datetime, Id) pair for that respective row. I need to iterate through the result set and filter out the 'datetime' and 'Id' part separately.
  My intention is to get 'Id' for each row. So in the following query I need to filter out "275" (see below)</p>
  
  <p>On writing this script:</p>
  
  <pre><code>cursor2.execute(query2, [item[0]])
  values = cursor2.fetchone() 
  #values now equals = (datetime.datetime(2015, 7, 22, 17, 17, 36), 275)
  print(values[0][1])
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>TypeError: 'datetime.datetime' object is not subscriptable</p>
  </blockquote>
  
  <p>I have tried converting values to a list/string objects but nothing has been working so far. Any ideas?</p>