Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-44687: Ensure BufferedReader objects with unread buffers can peek…
… even when the underlying file is closed (GH-28457) Co-authored-by: AngstyDuck <solsticedante@gmail.com>
- Loading branch information
1 parent
0e1aeab
commit 6035d65
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/C API/2021-09-19-17-18-25.bpo-44687.3fqDRC.rst
This file contains 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 @@ | ||
:meth:`BufferedReader.peek` no longer raises :exc:`ValueError` when the entire file has already been buffered. |
This file contains 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