]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] 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:22 +0000 (19:24 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:24:22 +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 61a68f52773882b9d23932e604d7fbbbabbffe97..4790d3b2da43754c85677dcdb7ec07a6563172f9 100644 (file)
@@ -155,6 +155,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;