Matt Goodall wrote:
> Guido van Rossum wrote:
> 
>>On 2/5/06, Ian Bicking <[EMAIL PROTECTED]> wrote:
>>
>>
>>>I suspect most templates will buffer their output internally, unless
>>>somehow configured or dynamically set not to do so.
>>
>>
>>Why would they? Isn't that a function that the web server typically does?
> 
> 
> I've not seen anyone respond to this, and I'm not sure if it was meant
> entirely in the context of rendering templates but ...

Lots of parallel threads... but yes, I was only speaking about 
templates.  In practice I believe ZPT does not stream output, and 
Cheetah can but does not by default.  Kid does not either, as it 
constructs a complete ElementTree representation and does modifications 
of that then serializes (though maybe the serialization is streamed).

> I don't think a web server should buffer anything except for perhaps
> small blocks of data on their way to a socket.

Certainly, and WSGI supports that well.  The templating spec (any of the 
forms) can support that as well, I just expect to see most results as 
[complete_body].


-- 
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org
_______________________________________________
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