I have data coming from DB in the form of string.
e.g = ['foo1', 'bar1', 'foo2', 'bar2'] and type is class 'str'
I want to convert it into a python list.
>>> db_string = ['foo1', 'bar1', 'foo2', 'bar2']
>>> db_string.strip('][').split(', ')
["'foo1'", "'bar1'", "'foo2'", "'bar2'"]
I want much better solution.