[EMAIL PROTECTED]
#- where my MyFile.txt looks like this:
#- ['abc','def']
The issue is that in the file you don't have a list, you have text, and there is the difference in the behaviour.
>>> l = ['abc','def']
>>> for x in l:
print x
abc
def
>>> s = "['abc','def']"
>>> for x in s:
print x
[
'
a
b
c
'
,
'
d
e
f
'
]
>>>
. Facundo
-- http://mail.python.org/mailman/listinfo/python-list