[Python-ideas] BufferedIO and detach

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 4 22:14:08 CET 2013


Guido van Rossum wrote:
> Personally, I'm not sure that your proposed API (a buffered_only flag
> to read()) is the best way to go about it. Maybe detach() should
> return the remaining buffered data?

Maybe you could be allowed to read() from the buffered
stream after detatching the underlying source, which
would then return any data remaining in the buffer.

-- 
Greg



More information about the Python-ideas mailing list