summaryrefslogtreecommitdiffstats
path: root/Python
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 /Python
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 'Python')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index f8d23ad..362294f 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -220,7 +220,7 @@ builtin_filter(PyObject *self, PyObject *args)
goto Fail_arg;
/* Guess a result list size. */
- len = _PyObject_LengthCue(seq);
+ len = _PyObject_LengthHint(seq);
if (len < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {
@@ -875,7 +875,7 @@ builtin_map(PyObject *self, PyObject *args)
}
/* Update len. */
- curlen = _PyObject_LengthCue(curseq);
+ curlen = _PyObject_LengthHint(curseq);
if (curlen < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {
@@ -2111,7 +2111,7 @@ builtin_zip(PyObject *self, PyObject *args)
len = -1; /* unknown */
for (i = 0; i < itemsize; ++i) {
PyObject *item = PyTuple_GET_ITEM(args, i);
- int thislen = _PyObject_LengthCue(item);
+ int thislen = _PyObject_LengthHint(item);
if (thislen < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {