]> granicus.if.org Git - python/commitdiff
Added documentation for PyDict_GetItemWithError().
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 1 Jun 2008 04:00:18 +0000 (04:00 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 1 Jun 2008 04:00:18 +0000 (04:00 +0000)
Doc/c-api/dict.rst

index def60d226cdf54102600c6c77f992ea4aa96a9f5..c86cd0b8c2f575ab87b910a1984706150bb29950 100644 (file)
@@ -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)