title: Can a docstring consist of multiple string literals?
body: <p>Can a Python docstring be written as a series of one-line string literals? For example, instead of</p>
  
  <pre><code>def bar():
    """My function.
  
    That does foo.
    """
    ...
  </code></pre>
  
  <p>to write</p>
  
  <pre><code>def bar():
    "My function.\n"
    "\n"
    "That does foo.\n"
    ...
  </code></pre>
  
  <p>I understand this might seem a little bit odd and much less readable. The reason why I want to do this is that I'm implementing a Python code generator/pretty printer. The problem with docstrings is that they aren't a syntactic feature, they are strings with special meaning. And my representation of Python code is purely syntactic, therefore I can't distinguish if a string is a docstring or not. Therefore I need a way how to pretty print all strings uniformly in a way that doesn't change their content (for example the exact value of a multi-line docstring depends on indentation).</p>