Skip to content

Commit 570d80e

Browse files
committed
Revert "Lock the iterable for list.__init__()"
This reverts commit f8b06ae.
1 parent 6276ae5 commit 570d80e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/listobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,9 @@ _list_extend(PyListObject *self, PyObject *iterable)
13621362
Py_END_CRITICAL_SECTION2();
13631363
}
13641364
else {
1365-
Py_BEGIN_CRITICAL_SECTION2(self, iterable);
1365+
Py_BEGIN_CRITICAL_SECTION(self);
13661366
res = list_extend_iter_lock_held(self, iterable);
1367-
Py_END_CRITICAL_SECTION2();
1367+
Py_END_CRITICAL_SECTION();
13681368
}
13691369
return res;
13701370
}

0 commit comments

Comments
 (0)