mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
replace PyXXX_Length calls with PyXXX_Size calls
This commit is contained in:
parent
6253f83b0a
commit
03657cfdb0
14 changed files with 30 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue