Remap Mysql tuple to dictionary

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Sep 26 03:24:57 EDT 2006


In message <efaj9p$fqq$2 at lust.ihug.co.nz>, I wrote:

> In message <mailman.629.1159250957.10491.python-list at python.org>, Fredrik
> Lundh wrote:
> 
>> Lawrence D'Oliveiro wrote:
>> 
>>>         yield dict(zip(Fields, NextRow))
>> 
>> the OP didn't ask for a field name => value mapping, though.
> 
> What other kind of mapping could you produce?

All right, sorry, looks like they want to load the entire table into RAM and
key it off the first field. Kind of defeats the point of having SQL, but
there you go...



More information about the Python-list mailing list