summaryrefslogtreecommitdiffstats
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-21 18:40:58 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-21 18:40:58 (GMT)
commit823649d544eec66a61176dbb76b51a9408c7f4ed (patch)
tree5421f4de7101fe676693edea46cc886661db96b7 /Include/abstract.h
parent91751143ebae8db295a7e15b4aeb831ea43ca123 (diff)
downloadcpython-823649d544eec66a61176dbb76b51a9408c7f4ed.zip
cpython-823649d544eec66a61176dbb76b51a9408c7f4ed.tar.gz
cpython-823649d544eec66a61176dbb76b51a9408c7f4ed.tar.bz2
Move the code implementing isinstance() and issubclass() to new C
APIs, PyObject_IsInstance() and PyObject_IsSubclass() -- both returning an int, or -1 for errors.
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 2c0e735..e0765e5 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -1074,6 +1074,13 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
*/
+DL_IMPORT(int) PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
+ /* isinstance(object, typeorclass) */
+
+DL_IMPORT(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
+ /* issubclass(object, typeorclass) */
+
+
#ifdef __cplusplus
}
#endif