docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)

docs: specify return value on success
This commit is contained in:
lefp 2023-11-03 06:51:28 -07:00 committed by GitHub
parent ccc8caa858
commit 9f33ede127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;