summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-29 15:07:49 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-29 15:07:49 (GMT)
commit043c8f866db72ad3f0c348e5481b079bc03a9808 (patch)
tree10fbb9f8301a28b29f6ed803b9d3ea1dfc7d13ce /Objects
parentc0ac106fe072ecf6aec1e051fd457197d849f64b (diff)
downloadcpython-043c8f866db72ad3f0c348e5481b079bc03a9808.zip
cpython-043c8f866db72ad3f0c348e5481b079bc03a9808.tar.gz
cpython-043c8f866db72ad3f0c348e5481b079bc03a9808.tar.bz2
Removed iter* methods from dictproxy.
The iter methods were a non-working relict from the past.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/descrobject.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 8e4dd2e..294c7b3 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -726,23 +726,6 @@ proxy_items(proxyobject *pp)
}
static PyObject *
-proxy_iterkeys(proxyobject *pp)
-{
- return PyObject_CallMethod(pp->dict, "iterkeys", NULL);
-}
-
-static PyObject *
-proxy_itervalues(proxyobject *pp)
-{
- return PyObject_CallMethod(pp->dict, "itervalues", NULL);
-}
-
-static PyObject *
-proxy_iteritems(proxyobject *pp)
-{
- return PyObject_CallMethod(pp->dict, "iteritems", NULL);
-}
-static PyObject *
proxy_copy(proxyobject *pp)
{
return PyObject_CallMethod(pp->dict, "copy", NULL);
@@ -758,13 +741,6 @@ static PyMethodDef proxy_methods[] = {
PyDoc_STR("D.values() -> list of D's values")},
{"items", (PyCFunction)proxy_items, METH_NOARGS,
PyDoc_STR("D.items() -> list of D's (key, value) pairs, as 2-tuples")},
- {"iterkeys", (PyCFunction)proxy_iterkeys, METH_NOARGS,
- PyDoc_STR("D.iterkeys() -> an iterator over the keys of D")},
- {"itervalues",(PyCFunction)proxy_itervalues, METH_NOARGS,
- PyDoc_STR("D.itervalues() -> an iterator over the values of D")},
- {"iteritems", (PyCFunction)proxy_iteritems, METH_NOARGS,
- PyDoc_STR("D.iteritems() ->"
- " an iterator over the (key, value) items of D")},
{"copy", (PyCFunction)proxy_copy, METH_NOARGS,
PyDoc_STR("D.copy() -> a shallow copy of D")},
{0}