[Python-checkins] r67875 - python/branches/py3k-issue1717/Include/abstract.h

mark.dickinson python-checkins at python.org
Sat Dec 20 14:47:48 CET 2008


Author: mark.dickinson
Date: Sat Dec 20 14:47:48 2008
New Revision: 67875

Log:
Remove PyObject_Cmp and PyObject_Compare from abstract.h


Modified:
   python/branches/py3k-issue1717/Include/abstract.h

Modified: python/branches/py3k-issue1717/Include/abstract.h
==============================================================================
--- python/branches/py3k-issue1717/Include/abstract.h	(original)
+++ python/branches/py3k-issue1717/Include/abstract.h	Sat Dec 20 14:47:48 2008
@@ -228,30 +228,6 @@
        */
 #define  PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A),NULL)
 
-     /* No longer implemented, for Python 3.0.1 and above:
-
-     PyAPI_FUNC(int) PyObject_Cmp(PyObject *o1, PyObject *o2, int *result);
-
-	 Compare the values of o1 and o2 using a routine provided by
-	 o1, if one exists, otherwise with a routine provided by o2.
-	 The result of the comparison is returned in result.  Returns
-	 -1 on failure.  This is the equivalent of the Python
-	 statement: result=cmp(o1,o2).
-
-       */
-
-     /* Implemented elsewhere:
-
-     int PyObject_Compare(PyObject *o1, PyObject *o2);
-
-	 Compare the values of o1 and o2 using a routine provided by
-	 o1, if one exists, otherwise with a routine provided by o2.
-	 Returns the result of the comparison on success.  On error,
-	 the value returned is undefined. This is equivalent to the
-	 Python expression: cmp(o1,o2).
-
-       */
-
      /* Implemented elsewhere:
 
      PyObject *PyObject_Repr(PyObject *o);


More information about the Python-checkins mailing list