title: mod_wsgi yield output buffer instead of return
body: <p>Right now I've got a mod_wsgi script that's structured like this..</p>
  
  <pre><code>def application(environ, start_response):
      status = '200 OK'
      output = 'Hello World!'
  
      response_headers = [('Content-type', 'text/plain'),
                      ('Content-Length', str(len(output)))]
      start_response(status, response_headers)
  
      return [output]
  </code></pre>
  
  <p>I was wondering if anyone knows of a way to change this to operate on a <code>yield</code> basis instead of <code>return</code>, that way I can send the page as it's being generated and not only once it's complete, so the page loading can go faster for the user.</p>
  
  <p>However, whenever I swap the output for a list and yield it in the application(), it throws an error:</p>
  
  <pre><code>TypeError: sequence of string values expected, value of type list found
  </code></pre>