summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-12-26 00:02:23 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-12-26 00:02:23 (GMT)
commit43e57113091a7eb3733cfde0b1e5be4add69e717 (patch)
treed6ff7a36b2fa61d041b1d808816650c19fa60a1a /Include
parent13cd8898d24a0b062903c6a1995769e440726905 (diff)
downloadcpython-43e57113091a7eb3733cfde0b1e5be4add69e717.zip
cpython-43e57113091a7eb3733cfde0b1e5be4add69e717.tar.gz
cpython-43e57113091a7eb3733cfde0b1e5be4add69e717.tar.bz2
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')
-rw-r--r--Include/dictobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 554b82e..7fa400a 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);