mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Renamed _length_cue() to __length_hint__(). See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
This commit is contained in:
parent
cbcdfdc112
commit
f5b3e36493
14 changed files with 41 additions and 32 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue