Issue #24347: Set KeyError if PyDict_GetItemWithError returns NULL.

This commit is contained in:
Eric Snow 2015-06-01 22:59:08 -06:00
parent fa1b47cc5a
commit a762af74b2
4 changed files with 69 additions and 15 deletions

View file

@ -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) \