How to add a current string into an already existing list

Chris Angelico rosuav at gmail.com
Tue Nov 5 09:21:48 CET 2013


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).

ChrisA



More information about the Python-list mailing list