This works great now:
def listItems():
l= []
d = {}
for r in range(len(vw)):
for x in range(lt):
ed = desc[x]
exec("d['%s']=vw[%d].%s" % (ed,r,ed))
l.append(d)
print l
But, it multiplies all of the records from vw by 5. How can I have:
for each record in the database:
for each column in the record:
do stuff.
Without multiplying the result i.e len(vw) * lt
Thanks.
Luis N.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor