On Sat, Mar 23, 2013 at 7:30 PM, Luca Sbardella <luca.sbarde...@gmail.com> wrote: >PJ Eby wrote: >> The validator is correct for the spec. You *must* call >> start_response() before yielding any strings at all. > > > Thanks for response PJ, > that is what I, unfortunately, didn't want to hear, the validator being > correct for the "spec" means I can't use it for my asynchronous stuff, which > is a shame :-((( > But why commit to send headers when you may not know about your response? > Sorry if this is the wrong mailing list for the issue, I'll adjust as I go > along.
Because async was added as an afterthought to WSGI about nine years ago, and we didn't get it right, but it long ago was too late to do anything about it. A properly async WSGI implementation will probably have to wait for Tulip (Guido's project to bring a standard async programming API to Python). _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com