8000 Merge branch 'gh-112087-dict' into nogil-integration · colesbury/cpython@71a9a85 · GitHub 10000
[go: up one dir, main page]

Skip to content

Commit 71a9a85

Browse files
committed
Merge branch 'pythongh-112087-dict' into nogil-integration
2 parents 367ccf0 + a1fa3fb commit 71a9a85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Objects/listobject.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,11 @@ _list_extend(PyListObject *self, PyObject *iterable)
13741374
res = list_extend_set(self, (PySetObject *)iterable);
13751375
Py_END_CRITICAL_SECTION2();
13761376
}
1377+
else if (PyDict_CheckExact(iterable)) {
1378+
Py_BEGIN_CRITICAL_SECTION2(self, iterable);
1379+
res = list_extend_dict(self, (PyDictObject *)iterable, 0 /*keys*/);
1380+
Py_END_CRITICAL_SECTION2();
1381+
}
13771382
else if (Py_IS_TYPE(iterable, &PyDictKeys_Type)) {
13781383
PyDictObject *dict = ((_PyDictViewObject *)iterable)->dv_dict;
13791384
Py_BEGIN_CRITICAL_SECTION2(self, dict);

0 commit comments

Comments
 (0)
0