summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-25 18:24:44 (GMT)
committerGitHub <noreply@github.com>2023-12-25 18:24:44 (GMT)
commitbc6528ee6b0c1beb5ba7524db7f20f4eb17d25b1 (patch)
tree82edc60053f2794055f179fc867b1af1cdb5b53e /Doc
parent88cc19b5308e3bc1aa12b9fe6f9d3242f49a1813 (diff)
downloadcpython-bc6528ee6b0c1beb5ba7524db7f20f4eb17d25b1.zip
cpython-bc6528ee6b0c1beb5ba7524db7f20f4eb17d25b1.tar.gz
cpython-bc6528ee6b0c1beb5ba7524db7f20f4eb17d25b1.tar.bz2
[3.11] docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888) (GH-111691)
(cherry picked from commit 9f33ede12710c454643c394421f52d209247272c) Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
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 33b7d23..d96809c 100644
--- a/Doc/c-api/bytes.rst
+++ b/Doc/c-api/bytes.rst
@@ -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;