[DB-SIG] return list of dictionaries
M.-A. Lemburg
mal@lemburg.com
Thu, 14 Feb 2002 18:14:07 +0100
Karl Diedrich wrote:
>
> Hello,
>
> Has anyone thought about alternatives to cursor.fetchXXX that return a
> list of dictionaries instead of
> a list of tuples.
>
> Then rows could be referenced by name. It would be easier to change code
>
> without breaking the order that
> has to be in the tuples.
This is a FAQ, please see the DB API 2.0 PEP Page at:
http://python.sourceforge.net/peps/pep-0249.html
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/