DXOracle / PyADO - convert lists of tuples to list of lists

Harald simon.12.ghum at spamgourmet.com
Sun Dec 15 03:56:43 EST 2002


Gerhard,

the solutions from you with the timing added:

d=[] # empty list
for i in fetchall():
   d.append(list(i))

maybe written as

d=[list(i) for i in fetchall()]

or as

d=map(list,fetchall())

With timing of

Dauer 3.98594933547  for
Dauer 3.52617203411  list
Dauer 2.3300359878  map


best wishes

Harald




More information about the Python-list mailing list