On Tue, 05 Nov 2013 11:34:53 +0200, Nick the Gr33k <nikos.gr...@gmail.com> wrote:
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.

Exactly. So why didn't you act on that impression?

Your error message told you that data was a method, and that a method is not iterable. The previous line is where you assigned it.

Try debugging this:

infile = open("myfile.txt")
data = infile.readlines
for line in data:
   print(line)

Not on a server. On your own machine.

--
DaveA

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to