title: Printing results from cursor.fetchall() without the trailing 'L'
body: <p>I have a python code that accesses mysql through MySQLdb to run a select statement. I then use <code>cursor.fetchall()</code> to gather that output as an array, but the problem is it prints an <code>L</code> at the end of each output like so:</p>
  
  <pre><code>sql = "SELECT data1, data2  FROM table1, table2 ;"
  cursor.execute(sql)
  dataarray = cursor.fetchall()
  print dataarray
  
  &gt;&gt;&gt; ((75379L, 45708L), ...)
  </code></pre>
  
  <p>But in my table, there are no L's, just the numbers. How can I ensure that it just fetches and prints the data without the L? I'd rather avoid using <code>[:-1]</code> on a string because then it changes my <code>None</code> values to <code>Non</code>.</p>