String To List
jeff at schwabcenter.com
Mon Mar 17 16:26:38 CET 2008
> I have a string a = "['xyz', 'abc']".. I would like to convert it to a
> list with elements 'xyz' and 'abc'. Is there any simple solution for
Do you want:
(1) Specifically to vivify lists formatted as in your example? If so, why?
(2) To save and restore arbitrary python objects?
(3) To define some kind of configuration file format that you can read
More information about the Python-list