What would be the closest pattern to doing the above in python?
while (item=self.cursor.fetchone()):
print item['id']
Basically, I'd like to get the result of a single database-row. What would be the most direct way to do this, or do I need to have some generic loop like while 1
?