[ python-Bugs-1720959 ] Please make sqlite3.Row iterable

SourceForge.net noreply at sourceforge.net
Thu May 17 23:14:17 CEST 2007


Bugs item #1720959, was opened at 2007-05-17 13:23
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1720959&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: phil (philipdumont)
>Assigned to: Gerhard Häring (ghaering)
Summary: Please make sqlite3.Row iterable

Initial Comment:
Sometimes I'd like to get row values with columnname
indexes, sometimes by iterating over the row.

The default (not setting the connection's row_factory)
is to return a tuple, which gives the latter, but not
the former.

Setting row_factory to sqlite3.Row gives the former,
but (surprisingly) not the latter.

It's a surprise because back when pysqlite was not part
of the Python distrib (I don't recall what version), its
Row type was iterable.  Any chance that bit of
functionality could be put back?

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-05-17 14:14

Message:
Logged In: YES 
user_id=33168
Originator: NO

Gerhard, could you take a look?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1720959&group_id=5470


More information about the Python-bugs-list mailing list