title: Formatting a single row as CSV
body: <p>I'm creating a script to convert a whole lot of data into CSV format. It runs on Google AppEngine using the mapreduce API, which is only relevant in that it means each row of data is formatted and output separately, in a callback function.</p>
  
  <p>I want to take advantage of the logic that already exists in the <code>csv</code> module to convert my data into the correct format, but because the CSV writer expects a file-like object, I'm having to instantiate a <code>StringIO</code> for each row, write the row to the object, then return the content of the object, each time.</p>
  
  <p>This seems silly, and I'm wondering if there is any way to access the internal CSV formatting logic of the <code>csv</code> module without the writing part.</p>