From this query...
self.cur.execute("""SELECT pub FROM "20091229"
GROUP BY pub ORDER BY pub""")
I get the following list with tuples back.
>>[(1,), (2,), (3,)]
But I need only a list or a list without decimal points in the tuples. Something like these:
[1, 2, 3]
or
[(1), (2), (3)]
Thanks.
[(1,), (2,), (3,)]- these are not decimal points (commas). These are tuple elements delimiters.