diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-30 15:29:53 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-30 15:29:53 (GMT) |
commit | 8c7ed012b87db4de66da61c2f7c0a11a61277384 (patch) | |
tree | 7e4b8d09555abf03483af4c01967a72636b7dab6 /Include/odictobject.h | |
parent | 7aa5341164794efc5367f63636cbe8327ca40393 (diff) | |
download | cpython-8c7ed012b87db4de66da61c2f7c0a11a61277384.zip cpython-8c7ed012b87db4de66da61c2f7c0a11a61277384.tar.gz cpython-8c7ed012b87db4de66da61c2f7c0a11a61277384.tar.bz2 |
Issue #16991: Use PyObject_TypeCheck instead of PyObject_IsInstance.
Diffstat (limited to 'Include/odictobject.h')
-rw-r--r-- | Include/odictobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/odictobject.h b/Include/odictobject.h index a32fbc5..1d0d235 100644 --- a/Include/odictobject.h +++ b/Include/odictobject.h @@ -19,7 +19,7 @@ PyAPI_DATA(PyTypeObject) PyODictValues_Type; #endif /* Py_LIMITED_API */ -#define PyODict_Check(op) PyObject_IsInstance(op, (PyObject *)&PyODict_Type) +#define PyODict_Check(op) PyObject_TypeCheck(op, &PyODict_Type) #define PyODict_CheckExact(op) (Py_TYPE(op) == &PyODict_Type) #define PyODict_SIZE(op) ((PyDictObject *)op)->ma_used #define PyODict_HasKey(od, key) (PyMapping_HasKey(PyObject *)od, key) |