<div><span style>string.split(',') will give you an array. </span></div><span style><div><span style><br></span></div><div><span style>Example:</span></div><div><span style><br></span></div>'AAA,"BBBB,CCCC,DDDD",EEE,FFF,</span><span style>GGG</span> '.split(',')<br>
<br>['AAA', '"BBBB', 'CCCC', 'DDDD"', 'EEE', 'FFF', 'GGG']<br><br><div class="gmail_quote">On Wed, Jun 13, 2012 at 10:53 PM, Chris Rebert <span dir="ltr"><<a href="mailto:clp2@rebertia.com" target="_blank">clp2@rebertia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">n Wed, Jun 13, 2012 at 7:29 PM, bruce g <<a href="mailto:bruceg113355@gmail.com">bruceg113355@gmail.com</a>> wrote:<br>

> What is the best way to parse a CSV string to a list?<br>
<br>
</div>Use the `csv` module:<br>
<a href="http://docs.python.org/library/csv.html" target="_blank">http://docs.python.org/library/csv.html</a><br>
<a href="http://www.doughellmann.com/PyMOTW/csv/" target="_blank">http://www.doughellmann.com/PyMOTW/csv/</a><br>
<br>
The `StringIO` module can be used to wrap your string as a file-like<br>
object for consumption by the `csv` module:<br>
<a href="http://docs.python.org/library/stringio.html" target="_blank">http://docs.python.org/library/stringio.html</a><br>
<br>
Cheers,<br>
Chris<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>