]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)
authorlefp <70862148+lefp@users.noreply.github.com>
Fri, 3 Nov 2023 13:51:28 +0000 (06:51 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 13:51:28 +0000 (14:51 +0100)
docs: specify return value on success

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;