import sqlite3 con = sqlite3.connect('') con.row_factory = sqlite3.Row # This loop fails because Row not iterable for col in con.execute('select 1,2,3').next(): print col