]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Dec 2023 18:24:44 +0000 (19:24 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:24:44 +0000 (20:24 +0200)
(cherry picked from commit 9f33ede12710c454643c394421f52d209247272c)

Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
Doc/c-api/bytes.rst

index 33b7d23ff85a3dc7fa816b105ee103095a436a6f..d96809c99adb512565bae743ecf57eb55e35eb43 100644 (file)
@@ -158,6 +158,7 @@ called with a non-bytes parameter.
 
    Return the null-terminated contents of the object *obj*
    through the output variables *buffer* and *length*.
+   Returns ``0`` on success.
 
    If *length* is ``NULL``, the bytes object
    may not contain embedded null bytes;