diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:13:56 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:13:56 (GMT) |
commit | f02e0aaafd2476948047f0ce904af947f02d18ea (patch) | |
tree | 724366997190a0acf829f65a4f1e96d82c060889 /Include/abstract.h | |
parent | 211c6258294bf683935bff73a61ce3dd84070988 (diff) | |
download | cpython-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 'Include/abstract.h')
-rw-r--r-- | Include/abstract.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index b953308..b3e7030 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -228,29 +228,6 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ */ #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A),NULL) - 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); |