<br><br>On Sunday, March 3, 2013, Benjamin Peterson wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Guido van Rossum <guido@...> writes:<br>
> When the io module was originally designed, this was actually one of<br>
> the (implied) use cases -- one reason I wanted to stop using C stdio<br>
> was that I didn't like that there is no standard way to get at the<br>
> data in the buffer, in similar use cases as you're trying to present.<br>
> (A use case I could think of would be an http server that forks a<br>
> subprocess after reading e.g. the first line of the http request, or<br>
> perhaps after the headers.)<br>
<br>
What was the API that provided this in the Python version of the io module?</blockquote><div><br></div><div>I think it may not have ben more than accessing private instance variables. :-)</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(Note it still mostly lives as Lib/_pyio.py)<br>
</blockquote><div><br></div><div>That won't help a concrete use case though, will it? </div><div><br></div><div>--Guido<span></span></div><br><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)<br>