string to list

bruce g bruceg113355 at gmail.com
Wed Jun 13 22:29:44 EDT 2012


What is the best way to parse a CSV string to a list?

For example, how do I parse:
    'AAA,"BBBB,CCCC,DDDD",EEE,FFF,GGG'
to get:
    ['AAA','BBB,CCC,DDDD','EEE','FFF','GGG’]

Thanks,
Bruce




More information about the Python-list mailing list