title: How to parse a string using a CSV parser in Python?
body: <p>I need to parse a string using a CSV parser. I've found this solution in many places, but it doesn't work for me. I was using Python 3.4, now I changed it to 2.7.9 and still nothing...</p>
  
  <pre><code>import csv
  import StringIO
  
  csv_file = StringIO.StringIO(line)
  csv_reader = csv.reader(csv_file)
  for data in csv_reader:
        # do something
  </code></pre>
  
  <p>Could anyone please suggest me another way to parse this string using a CSV parser? Or how can I make this work?</p>
  
  <p>Obs: I have a string in a CSV format, with fields that have commas inside, that's why I can't parse it in the standard way.</p>