title: Python: use mysqldb to import a MySQL table as a dictionary?
body: <p>Anyone know how I can use mysqldb to turn a MySQL table, with lots of rows, into a list of dictionary objects in Python?</p>
  
  <p>I mean turning a set of MySQL rows, with columns 'a', 'b', and 'c', into a Python object that that looks like this: </p>
  
  <pre><code>data = [ { 'a':'A', 'b':(2, 4), 'c':3.0 }, { 'a':'Q', 'b':(1, 4), 'c':5.0 }, { 'a':'T', 'b':(2, 8), 'c':6.1 } ]
  </code></pre>
  
  <p>Thanks :)</p>