Am 26.03.2012 00:59 schrieb Dennis Lee Bieber:
If you use the longer formcon = db.connect() cur = con.cursor() the cursor object, in all that I've worked with, does function for iteration
I use this form regularly with MySQLdb and am now surprised to see that this is optional according to http://www.python.org/dev/peps/pep-0249/.
So a database cursor is not required to be iterable, alas. Thomas -- http://mail.python.org/mailman/listinfo/python-list