On 8/7/07, Jeremy Hylton <[EMAIL PROTECTED]> wrote:
> We use the same makefile() object to read the headers and the body.
> We can't trust the body is text.  I guess we could change the code to
> use two different makefile() calls--a text one for headers that is
> closed when the headers are done, and a binary one for the body.

That would cause problems with the buffering, but it is safe to
extract the underlying binary buffered stream from the TextIOWrapper
instance using the .buffer attribute -- this is intentionally not
prefixed with an underscore.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to