-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add and implement primitive list.copy() #18771
base: master
Are you sure you want to change the base?
Conversation
implements the primitive list.copy() method
added list.copy()
creates a test for list.copy()
fixture for list.copy()
creates a test for list.copy() renamed for missing .test extension
fixture for list.copy()
mypyc/lib-rt/list_ops.c
Outdated
return PyList_GetSlice(list, 0, PyList_GET_SIZE(list)); | ||
} | ||
_Py_IDENTIFIER(copy); | ||
return _PyObject_CallMethodIdNoArgs(list, &PyId_copy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to get rid of _PyObject_CallMethodIdNoArgs
as it's only an internal method. See #18761 It would be better to use PyObject_CallMethodNoArgs
here instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add primitive for list.copy #1092