Skip to content

gh-119176: Add copy and clear to multiprocessing.ListProxy #119202

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

Closed
wants to merge 1 commit into from

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented May 20, 2024

I think that adding clear is fine, because we already have .remove which can do the same.
I also think that copy must be added, since this is the only method that is missing from list.

@@ -1155,7 +1155,7 @@ def set(self, value):
'__add__', '__contains__', '__delitem__', '__getitem__', '__len__',
'__mul__', '__reversed__', '__rmul__', '__setitem__',
'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove',
'reverse', 'sort', '__imul__'
'reverse', 'sort', '__imul__', 'clear', 'copy',
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to insert these two new strings between 'append' and 'count', to respect alphabetical order?

@sobolevn
Copy link
Member Author

In the meantime bbb4988 got merged

@sobolevn sobolevn closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants