title: python mysql.connector DictCursor?
body: <p>In Python <code>mysqldb</code> I could declare a cursor as a dictionary cursor like this:</p>
  
  <pre><code>cursor = db.cursor(MySQLdb.cursors.DictCursor) 
  </code></pre>
  
  <p>This would enable me to reference columns in the <code>cursor</code> loop by name like this:</p>
  
  <pre><code>for row in cursor:   # Using the cursor as iterator 
      city = row["city"]
      state = row["state"]
  </code></pre>
  
  <p>Is it possible to create a dictionary cursor using this MySQL connector?
  <a href="http://dev.mysql.com/doc/connector-python/en/connector-python-example-cursor-select.html">http://dev.mysql.com/doc/connector-python/en/connector-python-example-cursor-select.html</a></p>
  
  <p>Their example only returns a tuple.</p>
  
  <p>I imagine the creators of MySQL would eventually do this for us?</p>