This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author augustogoulart
Recipients André Neto, augustogoulart, christian.heimes, davin, leezu, pablogsal, taleinat
Date 2018-11-08.00:38:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541637529.49.0.788709270274.issue32485@psf.upfronthosting.co.za>
In-reply-to
Content
This is probably a bug that was fixed sometime in Python 3x.
Testing on 3.7.1, Python gracefully errors out:

```
➜  cpython git:(bpo-32485) ✗ python issue_32485.py
Same manager, same mux
Starting test_sameProcessSameThread
Traceback (most recent call last):
  File "issue_32485.py", line 130, in <module>
    test_sameProcessSameThread(inst1, inst2, nRuns)
  File "issue_32485.py", line 48, in test_sameProcessSameThread
    run(inst1, nRuns)
  File "issue_32485.py", line 30, in run
    inst.run()
  File "issue_32485.py", line 19, in run
    if (self.d.has_key(self.key)):
  File "<string>", line 2, in has_key
  File "/home/gus/.pyenv/versions/3.7.1/lib/python3.7/multiprocessing/managers.py", line 811, in _callmethod
    raise convert_to_error(kind, result)
multiprocessing.managers.RemoteError: 
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gus/.pyenv/versions/3.7.1/lib/python3.7/multiprocessing/managers.py", line 251, in serve_client
    function = getattr(obj, methodname)
AttributeError: 'dict' object has no attribute 'has_key'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gus/.pyenv/versions/3.7.1/lib/python3.7/multiprocessing/managers.py", line 271, in serve_client
    fallback_func = self.fallback_mapping[methodname]
KeyError: 'has_key'
---------------------------------------------------------------------------

```
History
Date User Action Args
2018-11-08 00:38:49augustogoulartsetrecipients: + augustogoulart, taleinat, christian.heimes, davin, leezu, pablogsal, André Neto
2018-11-08 00:38:49augustogoulartsetmessageid: <1541637529.49.0.788709270274.issue32485@psf.upfronthosting.co.za>
2018-11-08 00:38:49augustogoulartlinkissue32485 messages
2018-11-08 00:38:49augustogoulartcreate