Persistent db conn and fetchall() data with dict

David M. Cook davecook at nowhere.net
Sun Dec 29 00:50:24 EST 2002


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.

Dave Cook




More information about the Python-list mailing list