Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee750d8 commit e10920fCopy full SHA for e10920f
2 files changed
Misc/NEWS
@@ -27,6 +27,9 @@ Core and Builtins
27
Library
28
-------
29
30
+- Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
31
+ it ignored I/O errors if at least the first C call read() succeed.
32
+
33
- Issue #21781: ssl.RAND_add() now supports strings longer than 2 GB.
34
35
- Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
Modules/_io/fileio.c
@@ -691,9 +691,9 @@ fileio_readall(fileio *self)
691
}
692
continue;
693
694
- if (bytes_read > 0)
695
- break;
696
if (errno == EAGAIN) {
+ if (bytes_read > 0)
+ break;
697
Py_DECREF(result);
698
Py_RETURN_NONE;
699
0 commit comments