8000 bpo-39829: __len__ called twice in the list() constructor · python/cpython@ac00535 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac00535

Browse files
bpo-39829: __len__ called twice in the list() constructor
1 parent 0a5d672 commit ac00535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/listobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ list_extend(PyListObject *self, PyObject *iterable)
894894
Py_DECREF(iterable);
895895
return NULL;
896896
}
897+
}
897898
else {
898899
if (list_resize(self, m + n) < 0) {
899900
Py_DECREF(iterable);

0 commit comments

Comments
 (0)
0