How to Split a String

Grant Edwards grante at visi.com
Thu Nov 29 15:24:23 EST 2007


On 2007-11-29, Siah <siasookhteh at gmail.com> 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.

http://docs.python.org/lib/module-csv.html

-- 
Grant Edwards                   grante             Yow! ... the HIGHWAY is
                                  at               made out of LIME JELLO and
                               visi.com            my HONDA is a barbequeued
                                                   OYSTER!  Yum!



More information about the Python-list mailing list