]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Dec 2025 12:04:13 +0000 (13:04 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 12:04:13 +0000 (12:04 +0000)
gh-83926: BlockingIOError characters_written is byte count (GH-141215)
(cherry picked from commit e12c744b0a9322186146a90a5d2283d9a1049d31)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Doc/library/exceptions.rst

index 37eb64e6ff12f85c0db5b730a9bf63b270f2f003..395cf8ee2ad39c83392d25c4aaa3f949e966b8e0 100644 (file)
@@ -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