diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-01 04:00:18 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-01 04:00:18 (GMT) |
commit | 787f307e3582d20ce2e071de24ea7ce14bf871d5 (patch) | |
tree | f5f650577cc15c4f76045609da048d0db6755ce5 /Doc/c-api/dict.rst | |
parent | cb314333fda707fd88428aa5019f89230beb1f45 (diff) | |
download | cpython-787f307e3582d20ce2e071de24ea7ce14bf871d5.zip cpython-787f307e3582d20ce2e071de24ea7ce14bf871d5.tar.gz cpython-787f307e3582d20ce2e071de24ea7ce14bf871d5.tar.bz2 |
Added documentation for PyDict_GetItemWithError().
Diffstat (limited to 'Doc/c-api/dict.rst')
-rw-r--r-- | Doc/c-api/dict.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index def60d2..c86cd0b 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) |