On Thu, 29 Nov 2007 12:12:20 -0800, Siah wrote: > I need to convert the string: '(a, b, "c", d, "e")' into the following > list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually > use the split function, but this mini-monster wouldn't properly get > split up due to those random quotations postgresql returns to me.
I hope you don't use Python to access the database, get a tuple back, convert it to a string and then try to break up that string into a list!? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list