Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

exertustfm
Copy link

exertustfm and others added 8 commits March 7, 2025 23:39
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()
@cdce8p cdce8p added the topic-mypyc mypyc bugs label Mar 8, 2025
return PyList_GetSlice(list, 0, PyList_GET_SIZE(list));
}
_Py_IDENTIFIER(copy);
return _PyObject_CallMethodIdNoArgs(list, &PyId_copy);
Copy link
Collaborator

@cdce8p cdce8p Mar 8, 2025

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.

Copy link
Author

@exertustfm exertustfm Mar 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-mypyc mypyc bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants