summaryrefslogtreecommitdiff
path: root/Objects/enumobject.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-02-11 21:32:43 +0000
committerArmin Rigo <arigo@tunes.org>2006-02-11 21:32:43 +0000
commitd94851f034767b2846d1ce081ba5a196518223a6 (patch)
tree519daff3aa582cefde8b768e529aadff5d737de6 /Objects/enumobject.c
parent16de8a4889405dfa813a94d685da174bb88cb0a1 (diff)
downloadcpython-d94851f034767b2846d1ce081ba5a196518223a6.tar.gz
Renamed _length_cue() to __length_hint__(). See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r--Objects/enumobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c
index 8c3eab1692..7a5d1a162a 100644
--- a/Objects/enumobject.c
+++ b/Objects/enumobject.c
@@ -252,10 +252,10 @@ reversed_len(reversedobject *ro)
return PyInt_FromLong((seqsize < position) ? 0 : position);
}
-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 reversediter_methods[] = {
- {"_length_cue", (PyCFunction)reversed_len, METH_NOARGS, length_cue_doc},
+ {"__length_hint__", (PyCFunction)reversed_len, METH_NOARGS, length_hint_doc},
{NULL, NULL} /* sentinel */
};