summaryrefslogtreecommitdiffstats
path: root/Modules/_io/iobase.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_io/iobase.c')
-rw-r--r--Modules/_io/iobase.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
index 61756d0..710ada4 100644
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -38,8 +38,10 @@ PyDoc_STRVAR(iobase_doc,
"may raise a IOError when operations they do not support are called.\n"
"\n"
"The basic type used for binary data read from or written to a file is\n"
- "bytes. bytearrays are accepted too, and in some cases (such as\n"
- "readinto) needed. Text I/O classes work with str data.\n"
+ "the bytes type. Method arguments may also be bytearray or memoryview\n"
+ "of arrays of bytes. In some cases, such as readinto, a writable\n"
+ "object such as bytearray is required. Text I/O classes work with\n"
+ "unicode data.\n"
"\n"
"Note that calling any method (except additional calls to close(),\n"
"which are ignored) on a closed stream should raise a ValueError.\n"