mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-35461: Document C API functions which suppress exceptions. (GH-11119)
This commit is contained in:
parent
62a68b762a
commit
3fcc1e08db
7 changed files with 35 additions and 4 deletions
|
@ -429,7 +429,7 @@ Buffer-related functions
|
|||
|
||||
Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When ``1`` is
|
||||
returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` will
|
||||
succeed.
|
||||
succeed. This function always succeeds.
|
||||
|
||||
|
||||
.. c:function:: int PyObject_GetBuffer(PyObject *exporter, Py_buffer *view, int flags)
|
||||
|
@ -470,7 +470,7 @@ Buffer-related functions
|
|||
|
||||
Return ``1`` if the memory defined by the *view* is C-style (*order* is
|
||||
``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either one
|
||||
(*order* is ``'A'``). Return ``0`` otherwise.
|
||||
(*order* is ``'A'``). Return ``0`` otherwise. This function always succeeds.
|
||||
|
||||
|
||||
.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue