DB Cursor iterator (was: [ANN] PySQLite 0.3.0 released)

Daniel Dittmar daniel.dittmar at sap.com
Thu Sep 12 09:57:28 EDT 2002


Terry Reedy wrote:
> Does anyone know whether there are any plans to update the Python-DB
> API to the new iterator protocols, so that the above could be written
> more simply something like
>
> for row in cursor:
>        print "%14s, %15s, %19s, %8s, %25s" % tuple(row)

It's already in the 'Optional DB API Extensions' in
http://www.python.org/peps/pep-0249.html

Daniel






More information about the Python-list mailing list