Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
bpo-32475: Add argument to peek() into I/O buffer without reading#7947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
Previously it was impossible to ensure that a program had read all of the dataout of its buffer before it called `detach()`. With this change, calling`reader.peek(0, False)` will enable the program to gracefully transition frombuffered I/O to raw I/O.
the-knights-who-say-ni commentedJun 27, 2018
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 thePSF 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 followthe 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. |
Uh oh!
There was an error while loading.Please reload this page.
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