summaryrefslogtreecommitdiffstats
path: root/Modules/_io/iobase.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-05-28 01:07:08 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-05-28 01:07:08 (GMT)
commitc249221dfda0bf05c6fab37fab9c0eb4f23c870c (patch)
treea922dedc5f1a61c5b242d08f9b00f6ba587e9452 /Modules/_io/iobase.c
parent0472217d433634cb7180a37045744ad4a570d500 (diff)
parent6bb91f3b6e51352f91bcf785d3f6fe160ed2cd85 (diff)
downloadcpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.zip
cpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.tar.gz
cpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.tar.bz2
Issue #20699: Merge io bytes-like fixes from 3.5
Diffstat (limited to 'Modules/_io/iobase.c')
-rw-r--r--Modules/_io/iobase.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
index 51abd32..f07a0ca 100644
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -53,8 +53,9 @@ PyDoc_STRVAR(iobase_doc,
"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"
+ "bytes. Other bytes-like objects are accepted as method arguments too.\n"
+ "In some cases (such as readinto), a writable object is required. Text\n"
+ "I/O classes work with str 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"