mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888) (GH-111691)
(cherry picked from commit 9f33ede127
)
Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
This commit is contained in:
parent
88cc19b530
commit
bc6528ee6b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue