diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-14 18:37:24 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-14 18:37:24 (GMT) |
commit | 328ec7455f11f14cb4bf7077c6a4fa48b2356433 (patch) | |
tree | 283338f8069ce73208fc79f2d66bf7a337a60e17 /Doc/library | |
parent | 9e0b864ac07ab85b618ccf3831eae97b2c91fb2e (diff) | |
download | cpython-328ec7455f11f14cb4bf7077c6a4fa48b2356433.zip cpython-328ec7455f11f14cb4bf7077c6a4fa48b2356433.tar.gz cpython-328ec7455f11f14cb4bf7077c6a4fa48b2356433.tar.bz2 |
Issue #9854: The default read() implementation in io.RawIOBase now
handles non-blocking readinto() returning None correctly.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/io.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index e61aa90..3e0c62d 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -361,8 +361,9 @@ I/O Base Classes .. method:: readinto(b) - Read up to len(b) bytes into bytearray *b* and return the number of bytes - read. + Read up to len(b) bytes into bytearray *b* and return the number ofbytes + read. If the object is in non-blocking mode and no bytes are available, + ``None`` is returned. .. method:: write(b) |