diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-26 00:02:23 +0000 |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-26 00:02:23 +0000 |
commit | d998cbe2f7be1ee84411971b6881a6de8ff47e21 (patch) | |
tree | fb1c95bcf19f69fb034f649dafa2866ea981bfc9 /Include/dictobject.h | |
parent | ed984864badc49d79adb05a7ee11520d7bcaf499 (diff) | |
download | cpython-d998cbe2f7be1ee84411971b6881a6de8ff47e21.tar.gz |
The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along
with most other concrete object checks, but the docs weren't brought into
line.
PyList_CheckExact() was added at 2.2 but never documented.
backport candidate.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r-- | Include/dictobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 554b82e5a3..7fa400a5b2 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -87,6 +87,7 @@ struct _dictobject { PyAPI_DATA(PyTypeObject) PyDict_Type; #define PyDict_Check(op) PyObject_TypeCheck(op, &PyDict_Type) +#define PyList_CheckExact(op) ((op)->ob_type == &PyDict_Type) PyAPI_FUNC(PyObject *) PyDict_New(void); PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key); |