summaryrefslogtreecommitdiffstats
path: root/Modules/operator.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-17 18:02:30 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-17 18:02:30 (GMT)
commit8c1de8f33f58138e222532900d87ba6bec1c02a4 (patch)
tree7c2ff9679d872cbe4501966672cd09b8e0b29c0b /Modules/operator.c
parent8ae88960b5807ca36b87c3c82e10fc2611240aaf (diff)
downloadcpython-8c1de8f33f58138e222532900d87ba6bec1c02a4.zip
cpython-8c1de8f33f58138e222532900d87ba6bec1c02a4.tar.gz
cpython-8c1de8f33f58138e222532900d87ba6bec1c02a4.tar.bz2
Remove __{get,set,del}slice__ dingleberries.
Diffstat (limited to 'Modules/operator.c')
-rw-r--r--Modules/operator.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/Modules/operator.c b/Modules/operator.c
index e25a24e..e86bccf 100644
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -160,47 +160,6 @@ is_not(PyObject *s, PyObject *a)
return result;
}
-static PyObject*
-op_getslice(PyObject *s, PyObject *a)
-{
- PyObject *a1;
- Py_ssize_t a2, a3;
-
- if (!PyArg_ParseTuple(a, "Onn:getslice", &a1, &a2, &a3))
- return NULL;
- return PySequence_GetSlice(a1, a2, a3);
-}
-
-static PyObject*
-op_setslice(PyObject *s, PyObject *a)
-{
- PyObject *a1, *a4;
- Py_ssize_t a2, a3;
-
- if (!PyArg_ParseTuple(a, "OnnO:setslice", &a1, &a2, &a3, &a4))
- return NULL;
-
- if (-1 == PySequence_SetSlice(a1, a2, a3, a4))
- return NULL;
-
- Py_RETURN_NONE;
-}
-
-static PyObject*
-op_delslice(PyObject *s, PyObject *a)
-{
- PyObject *a1;
- Py_ssize_t a2, a3;
-
- if (!PyArg_ParseTuple(a, "Onn:delslice", &a1, &a2, &a3))
- return NULL;
-
- if (-1 == PySequence_DelSlice(a1, a2, a3))
- return NULL;
-
- Py_RETURN_NONE;
-}
-
#undef spam1
#undef spam2
#undef spam1o
@@ -276,12 +235,6 @@ spam2(delitem,__delitem__,
"delitem(a, b) -- Same as del a[b].")
spam2(pow,__pow__, "pow(a, b) -- Same as a ** b.")
spam2(ipow,__ipow__, "ipow(a, b) -- Same as a **= b.")
-spam2(getslice,__getslice__,
- "getslice(a, b, c) -- Same as a[b:c].")
-spam2(setslice,__setslice__,
-"setslice(a, b, c, d) -- Same as a[b:c] = d.")
-spam2(delslice,__delslice__,
-"delslice(a, b, c) -- Same as del a[b:c].")
spam2(lt,__lt__, "lt(a, b) -- Same as a<b.")
spam2(le,__le__, "le(a, b) -- Same as a<=b.")
spam2(eq,__eq__, "eq(a, b) -- Same as a==b.")