bpo-32475: Add argument to peek() into I/O buffer without reading#7947
bpo-32475: Add argument to peek() into I/O buffer without reading#7947hashbrowncipher wants to merge 2 commits into
Conversation
Previously it was impossible to ensure that a program had read all of the data out of its buffer before it called `detach()`. With this change, calling `reader.peek(0, False)` will enable the program to gracefully transition from buffered I/O to raw I/O.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. When your account is ready, please add a comment in this pull request Thanks again for your contribution, we look forward to reviewing it! |
|
I've now signed the CLA: https://bugs.python.org/user28818 |
|
This PR is stale because it has been open for 30 days with no activity. |
|
The following commit authors need to sign the Contributor License Agreement: |
|
This PR is stale because it has been open for 30 days with no activity. |
Previously it was impossible to ensure that a program had read all of the data
out of its buffer before it called
detach(). With this change, callingreader.peek(0, False)will enable the program to gracefully transition frombuffered I/O to raw I/O.
https://bugs.python.org/issue32475