[Python-3000-checkins] r63844 - python/branches/py3k/Doc/c-api/dict.rst
alexandre.vassalotti
python-3000-checkins at python.org
Sun Jun 1 06:00:19 CEST 2008
Author: alexandre.vassalotti
Date: Sun Jun 1 06:00:18 2008
New Revision: 63844
Log:
Added documentation for PyDict_GetItemWithError().
Modified:
python/branches/py3k/Doc/c-api/dict.rst
Modified: python/branches/py3k/Doc/c-api/dict.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/dict.rst (original)
+++ python/branches/py3k/Doc/c-api/dict.rst Sun Jun 1 06:00:18 2008
@@ -98,6 +98,12 @@
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)
More information about the Python-3000-checkins
mailing list