[Python-checkins] cpython (3.3): indicate that read/write work with bytes (closes #18009)

benjamin.peterson python-checkins at python.org
Fri May 24 23:36:20 CEST 2013


http://hg.python.org/cpython/rev/7935844c6737
changeset:   83912:7935844c6737
branch:      3.3
parent:      83910:4f8160e45cb7
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri May 24 14:35:57 2013 -0700
summary:
  indicate that read/write work with bytes (closes #18009)

files:
  Modules/posixmodule.c |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7838,7 +7838,7 @@
 
 
 PyDoc_STRVAR(posix_read__doc__,
-"read(fd, buffersize) -> string\n\n\
+"read(fd, buffersize) -> bytes\n\n\
 Read a file descriptor.");
 
 static PyObject *
@@ -8008,8 +8008,8 @@
 #endif
 
 PyDoc_STRVAR(posix_write__doc__,
-"write(fd, string) -> byteswritten\n\n\
-Write a string to a file descriptor.");
+"write(fd, data) -> byteswritten\n\n\
+Write bytes to a file descriptor.");
 
 static PyObject *
 posix_write(PyObject *self, PyObject *args)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list