Try this to convert that inner tuple into a dict the row[0][0] but with a 
name for your field - makes your code more readable (to me anyway):

rows = db.executesql("SELECT count(1) as the_count FROM autos WHERE 
autos.out=?", ('T'), True) #moved the ='T' into a parameter
print rows[0]['the_count'] #should give you the 10 you want


Reply via email to