Persistent db conn and fetchall() data with dict
Jarosław Zabiełło
webmaster at watchtowerDOTorg.pl
Sun Dec 29 22:15:42 EST 2002
On Sun, 29 Dec 2002 05:50:24 GMT, "David M. Cook"
<davecook at nowhere.net> wrote:
>In article <38vq0vooa1car67svio9mpriaa7760b018 at 4ax.com>, Jaros?aw Zabie??o
>wrote:
>
>> rows = cursor.fetchall()
>> for row in rows:
>> print row['MyField1'], row['MyField2']
>
>Take a look at the dtuple module.
>
>http://aspn.activestate.com/ASPN/Cookbook/Python?kwd=Databases
>
>Apparently dtuple has been around for years. Don't know why it was never
>made a standard module.
Look at my article
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/171463
--
JZ
More information about the Python-list
mailing list