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

clear method of list class in multiprocessing.Manager() is missing #119176

Closed
YvesDup opened this issue May 19, 2024 · 2 comments
Closed

clear method of list class in multiprocessing.Manager() is missing #119176

YvesDup opened this issue May 19, 2024 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@YvesDup
Copy link
Contributor

YvesDup commented May 19, 2024

Bug report

Bug description:

import multiprocessing as mp

if __name__ == '__main__':
    mp.freeze_support()
    m = mp.Manager()
    l = m.list([None, True, 2.9001])
    print(l)
    l.clear()

Result is:

[None, True, 2.9001]
Traceback (most recent call last):
  File "/Users/yves/Desktop/Bugs/gh-xxxxxxx1.py", line 8, in <module>
    l.clear()
    ^^^^^^^
AttributeError: 'ListProxy' object has no attribute 'clear'

The clear method is missing. Is there a particular reason for this, or is it just an oversight ?

PS: The clear method exists with the dict class of multiprocessing.Manager().

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

@YvesDup YvesDup added the type-bug An unexpected behavior, bug, or error label May 19, 2024
sobolevn added a commit to sobolevn/cpython that referenced this issue May 20, 2024
@sobolevn
Copy link
Member

Solved by bbb4988
Closing as a duplicate of #103134

@sobolevn sobolevn closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@YvesDup
Copy link
Contributor Author

YvesDup commented May 20, 2024

Sorry for not seing this previous issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants