How to add a current string into an already existing list

M.F. morefool at gmail.com
Tue Nov 5 04:10:01 EST 2013


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.




More information about the Python-list mailing list