string to list when the contents is a list
pruebauno at latinmail.com
Thu Feb 18 15:52:29 CET 2010
Wes James wrote:
> I have been trying to create a list form a string. The string will be
> a list (this is the contents will look like a list). i.e. "" or
> The "" is simple since I can just check if value == "" then return 
> But with "['a','b']" I have tried and get:
> [ " 'a' "," 'b' " ]
> when I want it to return ['a','b'].
> How can I do this?
I am surprised nobody gave you the simple answer yet that may even
work for your situation:
More information about the Python-list