[Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

René Dudfield renesd at gmail.com
Fri Apr 9 15:04:15 CEST 2010


On Fri, Apr 9, 2010 at 1:46 PM, Manlio Perillo <manlio_perillo at libero.it>wrote:

>
> By the way, as a matter of curiosity.
> WSGI 1.0 states:
>
> """The start_response callable must return a write(body_data) callable
> that takes one positional parameter: a string to be written as part of
> the HTTP response body. (Note: the write() callable is provided only to
> support certain existing frameworks' imperative output APIs; it should
> not be used by new applications or frameworks if it can be avoided. See
> the Buffering and Streaming section for more details.)"""
>
>
> There is nothing that prevents the write callable to raise an exception.
>
> Of course an implementation that always raise a NotImplementedError is
> going to be useless (for applications that require the write callable),
> but it seems to me that such an implementation can still claim to
> conform to WSGI 1.0.
>
>
Agreed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/web-sig/attachments/20100409/362b1341/attachment.html>


More information about the Web-SIG mailing list