SV: A little disappointed so far
Duncan Booth
duncan at NOSPAMrcp.co.uk
Mon May 19 11:51:01 EDT 2003
Damien Metzler <dmetler.nospam at partner.auchan.fr> wrote in
news:baasbv$btv$1 at reader1.imaginet.fr:
>> The second also looks like it should end up being a for loop:
>>
>> for row in cursor:
>> ...
>>
>>
>
> I you do this while reading long files, you put all your file in memory
> then ?
Why do you think that?
Support for iterating over a cursor is an optional extension to the dbapi,
but the PEP says it implements the same semantics as calling fetchone(), so
it certainly shouldn't read it all in one go.
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list