summaryrefslogtreecommitdiff
path: root/Include/odictobject.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2015-06-01 22:59:08 -0600
committerEric Snow <ericsnowcurrently@gmail.com>2015-06-01 22:59:08 -0600
commit4949722beab2bc2f79717c6779bed1544993a2d2 (patch)
treebc63abe4203dec9d067e2148b43f332215c43f9a /Include/odictobject.h
parent8c33d6b64930fdd5c4eb592578c4bd097ea5e7b6 (diff)
downloadcpython-4949722beab2bc2f79717c6779bed1544993a2d2.tar.gz
Issue #24347: Set KeyError if PyDict_GetItemWithError returns NULL.
Diffstat (limited to 'Include/odictobject.h')
-rw-r--r--Include/odictobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/odictobject.h b/Include/odictobject.h
index 7930d2876d..c1d9592a1d 100644
--- a/Include/odictobject.h
+++ b/Include/odictobject.h
@@ -30,6 +30,8 @@ PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key);
/* wrappers around PyDict* functions */
#define PyODict_GetItem(od, key) PyDict_GetItem((PyObject *)od, key)
+#define PyODict_GetItemWithError(od, key) \
+ PyDict_GetItemWithError((PyObject *)od, key)
#define PyODict_Contains(od, key) PyDict_Contains((PyObject *)od, key)
#define PyODict_Size(od) PyDict_Size((PyObject *)od)
#define PyODict_GetItemString(od, key) \