[Python-ideas] BufferedIO and detach
Guido van Rossum
guido at python.org
Mon Mar 4 22:55:46 CET 2013
On Mon, Mar 4, 2013 at 1:41 PM, Benjamin Peterson <benjamin at python.org> wrote:
> Guido van Rossum <guido at ...> writes:
>> On Sunday, March 3, 2013, Benjamin Peterson wrote:Guido van Rossum <guido
>> What was the API that provided this in the Python version of the io module?
>> I think it may not have ben more than accessing private instance variables.
> It's a bit hard to claim that was ever a "supported" usecase then.
True, it was not supported, but it was *possible* (and I had *meant*)
to support it by adding a new API to read what's in the buffer in a
completely portable way. This was still a step forward compared to
using stdio, where the hacks needed to access the buffer would vary by
platform and libc version. And that's all I meant by that comment.
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas