8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 367ccf0 + a1fa3fb commit 71a9a85Copy full SHA for 71a9a85
Objects/listobject.c
@@ -1374,6 +1374,11 @@ _list_extend(PyListObject *self, PyObject *iterable)
1374
res = list_extend_set(self, (PySetObject *)iterable);
1375
Py_END_CRITICAL_SECTION2();
1376
}
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
+ }
1382
else if (Py_IS_TYPE(iterable, &PyDictKeys_Type)) {
1383
PyDictObject *dict = ((_PyDictViewObject *)iterable)->dv_dict;
1384
Py_BEGIN_CRITICAL_SECTION2(self, dict);
0 commit comments