[Tutor] list to string and string to list
jfabiani at yolo.com
Fri Apr 17 01:05:30 CEST 2009
On Thursday 16 April 2009 03:52:02 pm johnf wrote:
> I am dealing with a database field that can only store strings.
> I want to save the list to the field and when I retrieve the string convert
> it back to a list.
> But this does NOT work.
> newlist= list(mystr)
> I keep thinking there must be a simple way of get this done.
Is this a good way?
newlist = eval(mystr)
More information about the Tutor