]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-83926: BlockingIOError characters_written is byte count (#141215)
authorCody Maloney <cmaloney@users.noreply.github.com>
Tue, 16 Dec 2025 11:53:56 +0000 (03:53 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 11:53:56 +0000 (13:53 +0200)
Doc/library/exceptions.rst

index b5e3a84b4556dd828d0e6c78a63af7f5aae5c658..f3aca1ba49257b74a8ff296a550a47fb34e4ac15 100644 (file)
@@ -742,8 +742,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