-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-109523: Reading text from a non-blocking stream with read may now raise a BlockingIOError if the operation cannot immediately return bytes. #122933
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
61cdfc5
Add unittest to handle non-blocking read scenarios.
giosiragusa 5123ff6
📜🤖 Added by blurb_it.
blurb-it[bot] 7a9037f
Update documentation for Text I/O and Buffered Streams to include han…
giosiragusa c31b0c7
Fix double backticks for inline literals.
giosiragusa ade7db0
Add a more meaningful message for the BlockingIOError.
giosiragusa 0953ad0
Updated the TextIOWrapper test to use self.io.open() instead of open(…
giosiragusa 100c4cb
- Raise `BlockingIOError` in `TextIOWrapper.read()` in `_pyio.py` whe…
giosiragusa bf5cc2b
Update NEWS entry to include references to _io and _pyio for Blocking…
giosiragusa fc02b20
Align documentation and code with Python style practices
giosiragusa c2d14e3
Fix news message for sphinx-lint
giosiragusa a735fff
Fix news message for sphinx-lint
giosiragusa 5f1cbae
Fix news message for sphinx-lint
giosiragusa cabdf39
Make notes more consistent
giosiragusa 8286a0a
Align BlockingIOError message in _pyio.py with the C implementation i…
giosiragusa 8690397
Add blank line after note.
giosiragusa 2f7fbb2
Remove unnecessary blank lines.
giosiragusa dbd807d
Keep the error message simple.
giosiragusa 1ac9096
Release the reference before throwing the exception.
giosiragusa 7d05cc3
Add blank line after notes.
giosiragusa 9f1c5f4
Remove unnecessary blank lines.
giosiragusa 317d402
Added what's new entry.
giosiragusa 8e4e661
Update Doc/whatsnew/3.14.rst
giosiragusa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/C_API/2024-08-12-10-15-19.gh-issue-109523.S2c3fi.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Reading text from a non-blocking stream with ``read`` may now raise a :exc:`BlockingIOError` if the operation cannot immediately return bytes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.