Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb31433 commit 787f307Copy full SHA for 787f307
1 file changed
Doc/c-api/dict.rst
@@ -98,6 +98,12 @@ Dictionary Objects
98
Return the object from dictionary *p* which has a key *key*. Return *NULL* if
99
the key *key* is not present, but *without* setting an exception.
100
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.
107
108
.. cfunction:: PyObject* PyDict_GetItemString(PyObject *p, const char *key)
109
0 commit comments