[Web-SIG] [extension] x-wsgiorg.flush

Manlio Perillo manlio_perillo at libero.it
Fri Oct 5 12:36:32 CEST 2007


Phillip J. Eby ha scritto:
> [...]
> Yep, but another argument in favor of getting rid of as much 
> statefulness from the protocol as we can.  Making the status and headers 
> part of the return value entirely eliminates the question of when 
> they're going to get written, and whether they can be changed.
> 
> (As a side benefit, making the return a 3-tuple makes it impossible to 
> write a WSGI app using a single generator -- thereby discouraging people 
> from using 'yield' like it was a CGI "print".)
> 


Wait, what do you mean by """As a side benefit, making the return a 
3-tuple makes it impossible to write a WSGI app using a single generator"""?

And what do you mean by """getting rid of as much
statefulness from the protocol as we can"""?


Regards  Manlio Perillo


More information about the Web-SIG mailing list