replace PyXXX_Length calls with PyXXX_Size calls

This commit is contained in:
Jeremy Hylton 2000-07-12 13:05:33 +00:00
parent 6253f83b0a
commit 03657cfdb0
14 changed files with 30 additions and 29 deletions

View file

@ -563,7 +563,7 @@ listextend(PyListObject *self, PyObject *args)
if (!b)
return NULL;
if (PyObject_Length(b) == 0)
if (PyObject_Size(b) == 0)
/* short circuit when b is empty */
goto ok;
@ -585,7 +585,7 @@ listextend(PyListObject *self, PyObject *args)
}
}
blen = PyObject_Length(b);
blen = PyObject_Size(b);
/* resize a using idiom */
items = self->ob_item;