How to add a current string into an already existing list

Nick the Gr33k nikos.gr33k at gmail.com
Tue Nov 5 04:34:53 EST 2013


Στις 5/11/2013 11:10 πμ, ο/η M.F. έγραψε:
> On 11/05/2013 04:54 PM, Nick the Gr33k wrote:
>>
>>
>> ===============
>> data = cur.fetchall
> data = cur.fetchall()
> That is what the stack trace and Christ tried to inform you.
>> for row in data:
>> ===============
>>
>> The only thing i can understand by looking the above 2 lines is this:
>>
>> 'for' fails to iterate over 'data' because for some reason 'data'
>> haven't resulted as a list of rows that can be iterated row by row.
>>
>> But that just doesn't help me much.
>

I see, but because of the traceback not being to express it more easily 
i was under the impression that data wasn't what i expected it to be.




More information about the Python-list mailing list