[Python-checkins] GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` class (#101227)

kumaraditya303 webhook-mailer at python.org
Thu Feb 9 12:46:47 EST 2023


https://github.com/python/cpython/commit/f1f3af7b8245e61a2e0abef03b2c6c5902ed7df8
commit: f1f3af7b8245e61a2e0abef03b2c6c5902ed7df8
branch: main
author: Partha P. Mukherjee <ppm.floss at gmail.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-02-09T23:16:40+05:30
summary:

GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` class (#101227)

files:
M Modules/_io/textio.c

diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 32ab8a44c621..ea2ea32c3369 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -56,10 +56,10 @@ textiobase_detach(PyObject *self, PyObject *Py_UNUSED(ignored))
 }
 
 PyDoc_STRVAR(textiobase_read_doc,
-    "Read at most n characters from stream.\n"
+    "Read at most size characters from stream.\n"
     "\n"
-    "Read from underlying buffer until we have n characters or we hit EOF.\n"
-    "If n is negative or omitted, read until EOF.\n"
+    "Read from underlying buffer until we have size characters or we hit EOF.\n"
+    "If size is negative or omitted, read until EOF.\n"
     );
 
 static PyObject *



More information about the Python-checkins mailing list