mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)
docs: specify return value on success
This commit is contained in:
parent
ccc8caa858
commit
9f33ede127
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue