summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorlefp <70862148+lefp@users.noreply.github.com>2023-11-03 13:51:28 (GMT)
committerGitHub <noreply@github.com>2023-11-03 13:51:28 (GMT)
commit9f33ede12710c454643c394421f52d209247272c (patch)
treea7adc7225be521fb4ea8b33ded601312217035fa /Doc
parentccc8caa8587103c4ccf617ba106cef63344504dd (diff)
downloadcpython-9f33ede12710c454643c394421f52d209247272c.zip
cpython-9f33ede12710c454643c394421f52d209247272c.tar.gz
cpython-9f33ede12710c454643c394421f52d209247272c.tar.bz2
docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)
docs: specify return value on success
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/bytes.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/c-api/bytes.rst b/Doc/c-api/bytes.rst
index 61a68f5..4790d3b 100644
--- a/Doc/c-api/bytes.rst
+++ b/Doc/c-api/bytes.rst
@@ -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;