Daniel Lenski added the comment:

Serhiy,
52 usec/loop doesn't seem like much overhead. This is not 52 usec per row 
fetched, but just 52 usec per cursor.execute(). An example where >1 row is 
fetched for each cursor would show this more clearly.

The advantage of namedtuple is that it's a very well-known interface to most 
Python programmers. Other db-api modules have taken a similar approach; 
psycopg2 has a dict-like cursor similar to Row, but has added NameTupleCursor 
in recent versions. 
(http://initd.org/psycopg/docs/extras.html#namedtuple-cursor)

----------
nosy: +dlenski

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to