summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-01 12:13:56 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-02-01 12:13:56 (GMT)
commitf02e0aaafd2476948047f0ce904af947f02d18ea (patch)
tree724366997190a0acf829f65a4f1e96d82c060889 /Doc
parent211c6258294bf683935bff73a61ce3dd84070988 (diff)
downloadcpython-f02e0aaafd2476948047f0ce904af947f02d18ea.zip
cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.gz
cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.bz2
Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/object.rst21
1 files changed, 0 insertions, 21 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 21051b9..d9f29d1 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -89,27 +89,6 @@ Object Protocol
*opid*.
-.. cfunction:: int PyObject_Cmp(PyObject *o1, PyObject *o2, int *result)
-
- .. index:: builtin: cmp
-
- 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)``.
-
-
-.. cfunction:: int PyObject_Compare(PyObject *o1, PyObject *o2)
-
- .. index:: builtin: cmp
-
- 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; use
- :cfunc:`PyErr_Occurred` to detect an error. This is equivalent to the Python
- expression ``cmp(o1, o2)``.
-
-
.. cfunction:: PyObject* PyObject_Repr(PyObject *o)
.. index:: builtin: repr