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

Gerhard Häring gerhard.haering at opus-gmbh.net
Thu Sep 12 10:23:20 EDT 2002

Daniel Dittmar wrote:
> 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

Yep and these extensions are fully supported by PySQLite and pyPgSQL :-)

-- Gerhard

More information about the Python-list mailing list