On Fri, Apr 9, 2010 at 1:46 PM, Manlio Perillo <manlio_peri...@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.
_______________________________________________
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

Reply via email to