[Python-checkins] python/dist/src/Objects descrobject.c,2.29,2.30
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Mon, 19 Aug 2002 11:45:39 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv5076/Objects
Modified Files:
descrobject.c
Log Message:
Make PyDescr_IsData() a macro. It's too simple to be a function.
Should save 4% on slot lookups.
Index: descrobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/descrobject.c,v
retrieving revision 2.29
retrieving revision 2.30
diff -C2 -d -r2.29 -r2.30
*** descrobject.c 19 Aug 2002 16:02:33 -0000 2.29
--- descrobject.c 19 Aug 2002 18:45:37 -0000 2.30
***************
*** 556,565 ****
}
- int
- PyDescr_IsData(PyObject *d)
- {
- return d->ob_type->tp_descr_set != NULL;
- }
-
/* --- Readonly proxy for dictionaries (actually any mapping) --- */
--- 556,559 ----