From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 16 Dec 2025 12:04:13 +0000 (+0100) Subject: [3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b5c7ba76fb619cea80df64d28fddaf123735af0;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815) gh-83926: BlockingIOError characters_written is byte count (GH-141215) (cherry picked from commit e12c744b0a9322186146a90a5d2283d9a1049d31) Co-authored-by: Cody Maloney --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 37eb64e6ff12..395cf8ee2ad3 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -725,8 +725,8 @@ depending on the system error code. .. attribute:: characters_written - An integer containing the number of characters written to the stream - before it blocked. This attribute is available when using the + An integer containing the number of **bytes** written to the stream + before it blocked. This attribute is available when using the buffered I/O classes from the :mod:`io` module. .. exception:: ChildProcessError