Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 787f307

Browse files
committed
Added documentation for PyDict_GetItemWithError().
1 parent cb31433 commit 787f307

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/dict.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ Dictionary Objects
9898
Return the object from dictionary *p* which has a key *key*. Return *NULL* if
9999
the key *key* is not present, but *without* setting an exception.
100100

101+
.. cfunction:: PyObject* PyDict_GetItemWithError(PyObject *p, PyObject *key)
102+
103+
Variant of :cfunc:`PyDict_GetItem` that does not suppress
104+
exceptions. Return *NULL* **with** an exception set if an exception
105+
occurred. Return *NULL* **without** an exception set if the key
106+
wasn't present.
101107

102108
.. cfunction:: PyObject* PyDict_GetItemString(PyObject *p, const char *key)
103109

0 commit comments

Comments
 (0)