summaryrefslogtreecommitdiffstats
path: root/Include/odictobject.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2015-06-02 04:59:08 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2015-06-02 04:59:08 (GMT)
commita762af74b2de734c44f7dc00358325d4485e2530 (patch)
tree8bd74eaf0c0ab40cbeb80491a9afd6ed4b555432 /Include/odictobject.h
parentfa1b47cc5a51095c43da5df0d6a042ec1f1b7d98 (diff)
downloadcpython-a762af74b2de734c44f7dc00358325d4485e2530.zip
cpython-a762af74b2de734c44f7dc00358325d4485e2530.tar.gz
cpython-a762af74b2de734c44f7dc00358325d4485e2530.tar.bz2
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 7930d28..c1d9592 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) \