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.
1 parent 32e0130 commit e74aad5Copy full SHA for e74aad5
mypyc/lib-rt/list_ops.c
@@ -34,7 +34,12 @@ PyObject *CPyList_Copy(PyObject *list) {
34
return PyList_GetSlice(list, 0, PyList_GET_SIZE(list));
35
}
36
_Py_IDENTIFIER(copy);
37
- return _PyObject_CallMethodIdNoArgs(list, &PyId_copy);
+
38
+ PyObject *name = _PyUnicode_FromId(&PyId_copy);
39
+ if (name == NULL) {
40
+ return NULL;
41
+ }
42
+ return PyObject_CallMethodNoArgs(list, name);
43
44
45
0 commit comments