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

@ -1385,7 +1385,7 @@ builtin_len(self, args)
if (!PyArg_ParseTuple(args, "O:len", &v))
return NULL;
res = PyObject_Length(v);
res = PyObject_Size(v);
if (res < 0 && PyErr_Occurred())
return NULL;
return PyInt_FromLong(res);