From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 6 Oct 2022 00:22:42 +0000 (-0700) Subject: [3.10] gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) (#97948) X-Git-Tag: v3.10.8~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2591e4f5eb717922b2b33e201daefe4f99463dc;p=thirdparty%2FPython%2Fcpython.git [3.10] gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) (#97948) gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) (cherry picked from commit 0d68879104dfb392d31e52e25dcb0661801a0249) Co-authored-by: 180909 <734461790@qq.com> Co-authored-by: 180909 <734461790@qq.com> --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index df812d63666c..5cf692e060cd 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -265,7 +265,7 @@ to provide an interface to files in the machine's file system. The :class:`BufferedIOBase` ABC extends :class:`IOBase`. It deals with buffering on a raw binary stream (:class:`RawIOBase`). Its subclasses, :class:`BufferedWriter`, :class:`BufferedReader`, and :class:`BufferedRWPair` -buffer raw binary streams that are readable, writable, and both readable and writable, +buffer raw binary streams that are writable, readable, and both readable and writable, respectively. :class:`BufferedRandom` provides a buffered interface to seekable streams. Another :class:`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory bytes.