I have this string from a file:
[u'Some string']
I read it as a string in my python script, and I need to convert it back into a list. This looks like a horrible idea, but so far eval seems to work fine:
>>> eval("[u'Some string']")
[u'Some string']
>>> type(eval("[u'Some string']"))
<type 'list'>
But this seems like a terribly horrible idea. Any way to elegantly do this?