diff options
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 9c49dad..e85e2f4 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -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; |