Re: HttpResponse as a file-like object

2008-08-25 Thread zvoase
I've written a patch, and I could open a bug with post-1.0 milestone, if that's OK? It's probably a good idea to have a general bug for initialising HttpResponse objects with iterators. On Aug 25, 9:33 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 12:26 -0700, zvoase w

Re: HttpResponse as a file-like object

2008-08-25 Thread Malcolm Tredinnick
On Mon, 2008-08-25 at 12:26 -0700, zvoase wrote: > Devels, > I've noticed in the docs that HttpResponse objects, if initialised > with an iterator, cannot be used as file-like objects. This could be > fixed quite easily. There are lots of problems -- some subtle and some obvious -- when initia

HttpResponse as a file-like object

2008-08-25 Thread zvoase
Devels, I've noticed in the docs that HttpResponse objects, if initialised with an iterator, cannot be used as file-like objects. This could be fixed quite easily. At the moment, if the response was not initialised with a string, then an error is raised when you try to write to it. Instead, all