Python mysql connector returns tuple
<p>I am connecting to mysql database via mysql connector and running a simple query to pull a list of IDs. I need to loop over that list and pass them into some other code. For some reason I am getting a list of tuples. Is this expected behavior? If not, what am I doing wrong?
Here is the snippet of my code:</p>

<pre><code>import mysql.connector
conn = mysql.connector.connect(host='127.0.0.1', database='t', user='r', password='pwd')
cursor = conn.cursor()
query = ( "select id from T where updated &lt; '%s'" % (run_date) )
cursor.execute(query)
for row in cursor:
   print (row)

cursor.close()
</code></pre>

<p>I am getting the following back (from an INT field in d/b):</p>

<pre><code>(Decimal('991837'),)
(Decimal('991838'),)
(Decimal('991839'),)
(Decimal('991871'),)
(Decimal('991879'),)
(Decimal('991899'),)
(Decimal('992051'),)
(Decimal('992299'),)
(Decimal('992309'),)
</code></pre>