title: get raw decimal value from mysqldb query
body: <p>I am executing a mysql query in python using the MySQLdb package.  The code looks something like this:</p>
  
  <pre><code>c=db.cursor()
  c.execute("""select * from table""")
  output = []
  for row in c:
      output.append(row[4])
  </code></pre>
  
  <p>where <code>row[4]</code> contains a decimal value that I want to store in the <code>output</code> list.</p>
  
  <p>The problem is every value that I am getting looks like this: <code>Decimal('XX.XX')</code> where all I want in the <code>output</code> list is XX.XX.  At the end of the script, my <code>output</code> list looks like this:</p>
  
  <pre><code>[Decimal('10.02'), Decimal('20.24'), ...]
  </code></pre>
  
  <p>But I need it to just contain the numbers, like this:</p>
  
  <pre><code>[10.02, 20.24, ...]
  </code></pre>
  
  <p>How do I do that?</p>
  
  <p>Thanks!</p>