G
Gregor Horvath
Hi,
given the dynamic nature of python I assume that there is an elegant
solution for my problem, but I did not manage to find it.
I have a file that contains for example on line:
['147', '148', '146']
when I read the file
f = file("I050901.ids").readlines()
I have a string
f[0] == "['147', '148', '146']"
How can I turn this string into a list
li == ['147', '148', '146']
without parsing?
given the dynamic nature of python I assume that there is an elegant
solution for my problem, but I did not manage to find it.
I have a file that contains for example on line:
['147', '148', '146']
when I read the file
f = file("I050901.ids").readlines()
I have a string
f[0] == "['147', '148', '146']"
How can I turn this string into a list
li == ['147', '148', '146']
without parsing?