[Python-checkins] r62476 - python/trunk/Include/object.h

martin.v.loewis python-checkins at python.org
Thu Apr 24 15:16:54 CEST 2008


Author: martin.v.loewis
Date: Thu Apr 24 15:16:36 2008
New Revision: 62476
Log:
Remove Py_Refcnt, Py_Type, Py_Size, as they were added only
for backwards compatibility, yet 2.5 did not have them at all.
Modified:
 python/trunk/Include/object.h
Modified: python/trunk/Include/object.h
==============================================================================
--- python/trunk/Include/object.h	(original)
+++ python/trunk/Include/object.h	Thu Apr 24 15:16:36 2008
@@ -115,11 +115,6 @@
 #define Py_TYPE(ob)		(((PyObject*)(ob))->ob_type)
 #define Py_SIZE(ob)		(((PyVarObject*)(ob))->ob_size)
 
-/* B/w compatibility */
-#define Py_Refcnt(ob)		Py_REFCNT(op)
-#define Py_Type(op)		Py_TYPE(op)
-#define Py_Size(op)		Py_SIZE(op)
-
 /*
 Type objects contain a string containing the type name (to help somewhat
 in debugging), the allocation parameters (see PyObject_New() and


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /