summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-19 18:45:37 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-19 18:45:37 (GMT)
commit492b46f29e8a706d5f27040d58ba6727d962a548 (patch)
tree637afacfd74823b2b6b31bfab3fc6498ae92af8f /Objects
parent69734a52725f1ebd3b508098a61c820784471d66 (diff)
downloadcpython-492b46f29e8a706d5f27040d58ba6727d962a548.zip
cpython-492b46f29e8a706d5f27040d58ba6727d962a548.tar.gz
cpython-492b46f29e8a706d5f27040d58ba6727d962a548.tar.bz2
Make PyDescr_IsData() a macro. It's too simple to be a function.
Should save 4% on slot lookups.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/descrobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 6daffc6..fc9d9a1 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -555,12 +555,6 @@ PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *base, void *wrapped)
return (PyObject *)descr;
}
-int
-PyDescr_IsData(PyObject *d)
-{
- return d->ob_type->tp_descr_set != NULL;
-}
-
/* --- Readonly proxy for dictionaries (actually any mapping) --- */