title: csv writer in Python with custom quoting
body: <p>I'm looking for a way to define custom <code>quoting</code> with <code>csv.writer</code> in Python. There are 4 built-in ways to qoute values:</p>
  
  <pre><code>csv.QUOTE_ALL, csv.QUOTE_MINIMAL, csv.QUOTE_NONNUMERIC, csv.QUOTE_NONE
  </code></pre>
  
  <p>However I need a quoting mechanism which will emulate Postgres' <code>FORCE QUOTE *</code>, i.e. it will quote all non-None values. With <code>csv.QUOTE_ALL</code> Python will turn None into <code>''</code> but I would like to have empty string instead.</p>
  
  <p>Is it possible to do that with built-in <code>csv</code> module ( I'm not interested in hacks, I'm already doing that :P )? Or am I forced to write/get some custom csv parser?</p>
  
  <p>And generally: is it possible to write custom quoting mechanism for <code>csv</code> module?</p>