mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -60,6 +60,10 @@ See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and
|
|||
This is equivalent to the Python expression ``key in o``.
|
||||
This function always succeeds.
|
||||
|
||||
Note that exceptions which occur while calling the :meth:`__getitem__`
|
||||
method will get suppressed.
|
||||
To get error reporting use :c:func:`PyObject_GetItem()` instead.
|
||||
|
||||
|
||||
.. c:function:: int PyMapping_HasKeyString(PyObject *o, const char *key)
|
||||
|
||||
|
|
@ -67,6 +71,10 @@ See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and
|
|||
This is equivalent to the Python expression ``key in o``.
|
||||
This function always succeeds.
|
||||
|
||||
Note that exceptions which occur while calling the :meth:`__getitem__`
|
||||
method and creating a temporary string object will get suppressed.
|
||||
To get error reporting use :c:func:`PyMapping_GetItemString()` instead.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyMapping_Keys(PyObject *o)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue