[issue32475] Add ability to query number of buffered bytes available on buffered I/O

Josh Snyder report at bugs.python.org
Wed Jun 27 00:01:30 EDT 2018


Josh Snyder <hashbrowncipher at gmail.com> added the comment:

I've opened PR #7947 with another approach to this issue.

In my use-case, an HTTP client makes a request and uses buffered I/O to parse the response headers. I would like to hand off the response socket to an extension module for use with raw I/O syscalls. The BufferedReader likely already contains some of the response body, which I would like to access before handing the socket off.

----------
nosy: +josnyder

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32475>
_______________________________________


More information about the Python-bugs-list mailing list