How to add a current string into an already existing list
Nick the Gr33k
nikos.gr33k at gmail.com
Tue Nov 5 09:53:55 CET 2013
Στις 5/11/2013 10:21 πμ, ο/η Chris Angelico έγραψε:
> On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k <nikos.gr33k at gmail.com> wrote:
>> How is ti possible for data to be none iterable?
> Do you know how to call a method in Python? If not, go back to the
> beginning of the tutorial and start reading. If so, look through your
> code and see where you have a 'method' object that you are trying to
> treat as iterable. It's really REALLY obvious, and you even have the
> line number to tell you.
> Nick, you *need* to learn how to read Python tracebacks. They are
> incredibly helpful. Be glad you don't just get "Segmentation fault"
> and a process termination (or, worse, a security hole).
data = cur.fetchall
for row in data:
the only thing i can understand by looking the above 2 lines is this:
'fo'r fails to iterate over 'data' because for some reason 'data'
haven't resulted as a list of rows that can be iterated.
But that just doesn't hlp me much.
More information about the Python-list