diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:31:56 (GMT) |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:31:56 (GMT) |
| commit | 8bd5f8359f788751cbf486aef2c6066b91690dcb (patch) | |
| tree | f169f46bbcc6c79c9ed4eff816a69117ac05d8a3 /Python | |
| parent | 9de2de59f0b3cecf91c2566e3a92a758091c5f8a (diff) | |
| download | cpython-8bd5f8359f788751cbf486aef2c6066b91690dcb.zip cpython-8bd5f8359f788751cbf486aef2c6066b91690dcb.tar.gz cpython-8bd5f8359f788751cbf486aef2c6066b91690dcb.tar.bz2 | |
Merged revisions 69184 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r69184 | mark.dickinson | 2009-02-01 12:13:56 +0000 (Sun, 01 Feb 2009) | 3 lines
Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
........
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/bltinmodule.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 05ed777..79ad66d 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -494,25 +494,6 @@ PyDoc_STR( ; -static PyObject * -builtin_cmp(PyObject *self, PyObject *args) -{ - PyObject *a, *b; - int c; - - if (!PyArg_UnpackTuple(args, "cmp", 2, 2, &a, &b)) - return NULL; - if (PyObject_Cmp(a, b, &c) < 0) - return NULL; - return PyLong_FromLong((long)c); -} - -PyDoc_STRVAR(cmp_doc, -"cmp(x, y) -> integer\n\ -\n\ -Return negative if x<y, zero if x==y, positive if x>y."); - - static char * source_as_string(PyObject *cmd, char *funcname, char *what) { @@ -2233,7 +2214,6 @@ static PyMethodDef builtin_methods[] = { {"ascii", builtin_ascii, METH_O, ascii_doc}, {"bin", builtin_bin, METH_O, bin_doc}, {"chr", builtin_chr, METH_VARARGS, chr_doc}, - {"cmp", builtin_cmp, METH_VARARGS, cmp_doc}, {"compile", (PyCFunction)builtin_compile, METH_VARARGS | METH_KEYWORDS, compile_doc}, {"delattr", builtin_delattr, METH_VARARGS, delattr_doc}, {"dir", builtin_dir, METH_VARARGS, dir_doc}, |
