summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-02-11 21:32:43 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-02-11 21:32:43 (GMT)
commitf5b3e36493da275334e29afdbd238863697dca35 (patch)
tree9ddfdb941f79b23a7665f473df37f82f49a80981 /Modules
parentcbcdfdc1129cdec27281f62e4494a05405354340 (diff)
downloadcpython-f5b3e36493da275334e29afdbd238863697dca35.zip
cpython-f5b3e36493da275334e29afdbd238863697dca35.tar.gz
cpython-f5b3e36493da275334e29afdbd238863697dca35.tar.bz2
Renamed _length_cue() to __length_hint__(). See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
Diffstat (limited to 'Modules')
-rw-r--r--Modules/collectionsmodule.c4
-rw-r--r--Modules/itertoolsmodule.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c
index 16f25df..2003154 100644
--- a/Modules/collectionsmodule.c
+++ b/Modules/collectionsmodule.c
@@ -941,10 +941,10 @@ dequeiter_len(dequeiterobject *it)
return PyInt_FromLong(it->counter);
}
-PyDoc_STRVAR(length_cue_doc, "Private method returning an estimate of len(list(it)).");
+PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
static PyMethodDef dequeiter_methods[] = {
- {"_length_cue", (PyCFunction)dequeiter_len, METH_NOARGS, length_cue_doc},
+ {"__length_hint__", (PyCFunction)dequeiter_len, METH_NOARGS, length_hint_doc},
{NULL, NULL} /* sentinel */
};
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index a7ecf93..4b8ed69 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -2346,10 +2346,10 @@ repeat_len(repeatobject *ro)
return PyInt_FromLong(ro->cnt);
}
-PyDoc_STRVAR(length_cue_doc, "Private method returning an estimate of len(list(it)).");
+PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
static PyMethodDef repeat_methods[] = {
- {"_length_cue", (PyCFunction)repeat_len, METH_NOARGS, length_cue_doc},
+ {"__length_hint__", (PyCFunction)repeat_len, METH_NOARGS, length_hint_doc},
{NULL, NULL} /* sentinel */
};