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.
Standard lists accept clear as a shortcut for del xs[:]
clear
del xs[:]
xs = ['a'] xs.clear()
However, multiprocessing.ListProxy omitted support for clear().
multiprocessing.ListProxy
clear()
from multiprocessing import Manager with Manager() as manager: xs = manager.list() xs.clear()
raises the following exception
AttributeError: 'ListProxy' object has no attribute 'clear'
If clear is supported in a standard list, it should be supported in a multiprocessing list!
This issue was not previously discussed.
Feature or enhancement
Standard lists accept
clearas a shortcut fordel xs[:]However,
multiprocessing.ListProxyomitted support forclear().raises the following exception
Pitch
If
clearis supported in a standard list, it should be supported in a multiprocessing list!Previous discussion
This issue was not previously discussed.
Linked PRs