Skip to content

Commit 5ba454e

Browse files
lefpaisk
authored andcommitted
docs: specify that PyBytes_AsStringAndSize returns 0 on success (pythonGH-110888)
docs: specify return value on success
1 parent f324431 commit 5ba454e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/c-api/bytes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ called with a non-bytes parameter.
155155
156156
Return the null-terminated contents of the object *obj*
157157
through the output variables *buffer* and *length*.
158+
Returns ``0`` on success.
158159
159160
If *length* is ``NULL``, the bytes object
160161
may not contain embedded null bytes;

0 commit comments

Comments
 (0)