Re: response.write and memory, newbie question!

2008-05-12 Thread Andrew Smith
Thanks On May 12, 5:27 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Andrew, it will build up its contents in memory. Consider how an exception > thrown in your view will cause the response never to even be sent. > > Your best bet if you want to do streaming is to pass an iterator to the > Htt

Re: response.write and memory, newbie question!

2008-05-12 Thread Scott Moonen
Andrew, it will build up its contents in memory. Consider how an exception thrown in your view will cause the response never to even be sent. Your best bet if you want to do streaming is to pass an iterator to the HttpResponse constructor. Your iterator should yield strings to its caller. --

Re: response.write and memory, newbie question!

2008-05-12 Thread Matthias Kestenholz
Hi, On Mon, 2008-05-12 at 09:16 -0700, Andrew Smith wrote: > Hello > > When I use response as a file-like object, by calling response.write > or passing it to something which expects a file-like object, does it > build up its contents in memory or stream them straight to the > browser? It build

response.write and memory, newbie question!

2008-05-12 Thread Andrew Smith
Hello When I use response as a file-like object, by calling response.write or passing it to something which expects a file-like object, does it build up its contents in memory or stream them straight to the browser? TIA Andy --~--~-~--~~~---~--~~ You received thi