-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
multiprocessing's SyncManager.dict.has_key() method is broken #80099
Comments
Related to BPO-35917: $ ./python
Python 3.8.0a1+ (heads/master:cd90f6a369, Feb 6 2019, 17:16:10)
[GCC 7.3.0] on linux
>>> import multiprocessing.managers
>>> m = multiprocessing.managers.SyncManager()
>>> m.start()
>>> d = m.dict()
>>> 'has_key' in dir(d)
True
>>> d.has_key(1)
Traceback (most recent call last):
File "/home/giampaolo/cpython/Lib/multiprocessing/managers.py", line 271, in serve_client
fallback_func = self.fallback_mapping[methodname]
KeyError: 'has_key' |
Hi @giampaolo.rodola, I will post a PR for this issue. |
has_key method has been removed in Python3 so I think we can remove it from the DictProxy as well as nobody should be relying on it anymore. |
That sounds fine to me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: