
March 4, 2013
9:14 p.m.
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