title: Triple-double quote v.s. Double quote
body: <p>What is the preferred way to write Python doc string? </p>
  
  <p><code>"""</code> or <code>"</code></p>
  
  <p>In the book  <a href="http://www.diveintopython.net/getting_to_know_python/documenting_functions.html" rel="noreferrer">Dive Into Python</a>, the author provides the following example:</p>
  
  <pre><code>def buildConnectionString(params):
      """Build a connection string from a dictionary of parameters.
  
      Returns string."""
  </code></pre>
  
  <p>In another <a href="http://www.diveintopython.net/object_oriented_framework/index.html#fileinfo.divein" rel="noreferrer">chapter</a>, the author provides another example:</p>
  
  <pre><code>def stripnulls(data):
      "strip whitespace and nulls"
      return data.replace("\00", "").strip()
  </code></pre>
  
  <p>Both syntax work.  The only difference to me is that <code>"""</code> allows us to write multi-line doc.</p>
  
  <p>Is there any difference other than that?</p>