From: Alexandre Vassalotti Date: Sun, 1 Jun 2008 04:00:18 +0000 (+0000) Subject: Added documentation for PyDict_GetItemWithError(). X-Git-Tag: v3.0b1~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=787f307e3582d20ce2e071de24ea7ce14bf871d5;p=thirdparty%2FPython%2Fcpython.git Added documentation for PyDict_GetItemWithError(). --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index def60d226cdf..c86cd0b8c2f5 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -98,6 +98,12 @@ Dictionary Objects Return the object from dictionary *p* which has a key *key*. Return *NULL* if the key *key* is not present, but *without* setting an exception. +.. cfunction:: PyObject* PyDict_GetItemWithError(PyObject *p, PyObject *key) + + Variant of :cfunc:`PyDict_GetItem` that does not suppress + exceptions. Return *NULL* **with** an exception set if an exception + occurred. Return *NULL* **without** an exception set if the key + wasn't present. .. cfunction:: PyObject* PyDict_GetItemString(PyObject *p, const char *key)